Skip to content

Commit

Permalink
Merge pull request #182 from anton-malakhov/ci_testing
Browse files Browse the repository at this point in the history
Introducing CI actions for testing (with Quartus currently)
  • Loading branch information
yuri-panchul authored Oct 28, 2024
2 parents 2fb6585 + cf8049d commit 1429163
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/synthesis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Synthesis check

on:
pull_request:
branches: [main]
types:
- opened
- synchronize
- reopened

env:
USER: root
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
linux-testing:
name: ${{ matrix.tool }}_${{ matrix.imagever }}
runs-on: ['ubuntu-latest']
container:
image: ${{ matrix.imagerepo }}:${{ matrix.imagever }}
timeout-minutes: 45
strategy:
fail-fast: true
matrix:
include:
- tool: quartus
imagerepo: ghcr.io/raetro/quartus
imagever: 21.1.1
boards: 40
labs: 12345
- tool: quartus
imagerepo: ghcr.io/raetro/quartus
imagever: 13.0sp1
boards: 9 35
labs: 12345
steps:
- name: Checkout
run: |
# Avoid https://github.com/actions/checkout/issues/1590
curl -L -o archive.tar.gz https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_SHA}.tar.gz
tar xvf archive.tar.gz; env; pwd; ls *${GITHUB_SHA}
- name: Synthesis
shell: bash
run: |
set -ex; cd *${GITHUB_SHA}
echo >scripts/steps/04_configure_fpga.source_bash # disable programmator
for b in ${{ matrix.boards }}; do
echo -e "$b\ny\n" | ./check_setup_and_choose_fpga_board.bash
for x in labs/[${{ matrix.labs }}]_*/*_*_*/03_synthesize_for_fpga.bash; do
pushd `dirname $x`
echo | ./`basename $x`
popd
done
done

0 comments on commit 1429163

Please sign in to comment.