Compile all #71
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
name: Compile all | |
on: | |
workflow_dispatch: | |
pull_request: | |
repository_dispatch: | |
types: rebuild | |
schedule: | |
- cron: '0 0 * * *' # runs every night | |
jobs: | |
list_cores: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
outputs: | |
cores: ${{ steps.generate-matrix.outputs.cores }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
token: ${{ secrets.PAT }} | |
- id: generate-matrix | |
run: | | |
cd cores | |
# Get list of cores ready for compilation | |
CORES='[' | |
for i in *; do | |
if [[ -e $i/cfg/macros.def && ! -e $i/cfg/skip ]]; then | |
if [ "$CORES" != '[' ]; then CORES="$CORES, "; fi | |
CORES="$CORES \"$i\"" | |
fi | |
done | |
CORES="$CORES ]" | |
echo $CORES | |
echo "cores=${CORES}" >> $GITHUB_OUTPUT | |
compile_cores13: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
container: | |
image: jotego/jtcore13 | |
needs: | |
- list_cores | |
strategy: | |
fail-fast: false | |
matrix: | |
core: ${{ fromJSON(needs.list_cores.outputs.cores) }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
token: ${{ secrets.PAT }} | |
- id: compile | |
run: | | |
# Compilation on Quartus 13 | |
export PATH=$PATH:/usr/local/go/bin:/opt/altera/13.1/quartus/bin | |
git config --global --add safe.directory /__w/jtcores/jtcores | |
git config --global --add safe.directory /__w/jtcores/jtcores/modules/jtframe/target/pocket | |
./setprj.sh jtseed 10 ${{ matrix.core }} --target mist --nodbg |