-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] move Windows/MSYS2 jobs to a new workflow named 'Windows'
- Loading branch information
Showing
5 changed files
with
154 additions
and
122 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,24 @@ | ||
#!/usr/bin/env python3 | ||
|
||
print('::set-output name=matrix::' + str([ | ||
{ | ||
'board': 'UPduino_v3', | ||
'design': 'MinimalBoot', | ||
'bitstream': 'neorv32_UPduino_v3_MinimalBoot.bin' | ||
}, { | ||
'board': 'UPduino_v3', | ||
'design': 'UP5KDemo', | ||
'bitstream': 'neorv32_UPduino_v3_UP5KDemo.bin' | ||
}, { | ||
'board': 'Fomu', | ||
'design': 'Minimal', | ||
'bitstream': 'neorv32_Fomu_pvt_Minimal.bit' | ||
}, { | ||
'board': 'Fomu', | ||
'design': 'MinimalBoot', | ||
'bitstream': 'neorv32_Fomu_pvt_MinimalBoot.bit' | ||
}, { | ||
'board': 'Fomu', | ||
'design': 'UP5KDemo', | ||
'bitstream': 'neorv32_Fomu_pvt_UP5KDemo.bit' | ||
}])) |
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
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
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,122 @@ | ||
name: Windows | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: '0 0 * * 5' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
|
||
Matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.generate.outputs.matrix }} | ||
|
||
steps: | ||
|
||
- name: '🧰 Repository Checkout' | ||
uses: actions/checkout@v2 | ||
|
||
- name: '🔧 Generate examples matrix' | ||
id: generate | ||
run: ./.github/generate-job-matrix.py | ||
|
||
|
||
Implementation: | ||
needs: Matrix | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ | ||
{icon: '⬛', installs: 'MINGW32', arch: i686, pkg: 'mcode' }, | ||
{icon: '🟦', installs: 'MINGW64', arch: x86_64, pkg: 'llvm' }, | ||
] | ||
example: ${{ fromJson(needs.Matrix.outputs.matrix) }} | ||
name: '${{ matrix.platform.icon }} ${{ matrix.platform.installs }} | ${{ matrix.example.board }} · ${{ matrix.example.design }}' | ||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
steps: | ||
|
||
- name: '${{ matrix.platform.icon }} Setup MSYS2' | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: ${{ matrix.platform.installs }} | ||
update: true | ||
install: > | ||
make | ||
mingw-w64-${{ matrix.platform.arch }}-yosys | ||
mingw-w64-${{ matrix.platform.arch }}-nextpnr | ||
mingw-w64-${{ matrix.platform.arch }}-icestorm | ||
- name: '⚙️ git config' | ||
run: git config --global core.autocrlf input | ||
shell: bash | ||
|
||
- name: '🧰 Checkout' | ||
uses: actions/checkout@v2 | ||
with: | ||
# The command 'git describe' (used for version) needs the history. | ||
fetch-depth: 0 | ||
|
||
- name: '🚧 Generate ${{ matrix.example.board }} ${{ matrix.example.design }} bitstream' | ||
run: make -C setups/examples BOARD=${{ matrix.example.board }} ${{ matrix.example.design }} | ||
|
||
|
||
Processor: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: [ | ||
{icon: '⬛', installs: 'MINGW32', arch: i686, pkg: 'mcode' }, | ||
{icon: '🟦', installs: 'MINGW64', arch: x86_64, pkg: 'llvm' }, | ||
] | ||
name: '${{ matrix.icon }} ${{ matrix.installs }} | VUnit' | ||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
steps: | ||
|
||
- name: '⚙️ git config' | ||
run: git config --global core.autocrlf input | ||
shell: bash | ||
|
||
- name: '🧰 Checkout' | ||
uses: actions/checkout@v2 | ||
with: | ||
# The command 'git describe' (used for version) needs the history. | ||
fetch-depth: 0 | ||
|
||
- name: '${{ matrix.icon }} Setup MSYS2' | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: ${{ matrix.installs }} | ||
update: true | ||
install: > | ||
make | ||
mingw-w64-${{ matrix.arch }}-ghdl-${{ matrix.pkg }} | ||
mingw-w64-${{ matrix.arch }}-python-pip | ||
mingw-w64-${{ matrix.arch }}-riscv64-unknown-elf-gcc | ||
- name: '⚙️ Build and install Processor Check software' | ||
run: | | ||
make -C sw/example/processor_check \ | ||
RISCV_TOOLCHAIN=riscv64-unknown-elf \ | ||
clean_all \ | ||
USER_FLAGS+=-DRUN_CHECK \ | ||
USER_FLAGS+=-DUART0_SIM_MODE \ | ||
MARCH=-march=rv32imac \ | ||
info \ | ||
all | ||
- name: '🐍 Install VUnit' | ||
run: pip install vunit_hdl | ||
|
||
- name: '🚧 Run Processor Hardware Tests with VUnit' | ||
run: ./sim/run.py --ci-mode -v |
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