-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from anton-malakhov/ci_testing
Introducing CI actions for testing (with Quartus currently)
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |