Skip to content

Commit

Permalink
Fixes MiSTer compile action
Browse files Browse the repository at this point in the history
  • Loading branch information
jotego committed Mar 3, 2023
1 parent 215e0c7 commit 2c1d715
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/compile_mister.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ jobs:
- id: generate-matrix
run: |
cd cores
CORES=$(tree -J -d -L 1 | jq -c '.[0].contents | map(.name)')
# 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
Expand Down Expand Up @@ -45,10 +53,8 @@ jobs:
cd ../..
- id: compile
run: |
# Do not attempt to compile core in progress
if [ -e cores/$${matrix.core}/cfg/macros.def ]; then
docker run --network host -v `pwd`:/jtcores jotego/jtcore17x xjtcore.sh ${{matrix.core}}
fi
# Compilation on Quartus 17
docker run --network host -v `pwd`:/jtcores jotego/jtcore17x xjtcore.sh ${{matrix.core}}
- id: upload
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 2c1d715

Please sign in to comment.