Skip to content

disable unneeded github actions for this repo #1

disable unneeded github actions for this repo

disable unneeded github actions for this repo #1

Workflow file for this run

name: MiSTer,Pocket & SiDi
on:
workflow_dispatch:
repository_dispatch:
types: rebuild
jobs:
list_cores:
if: false
runs-on: ubuntu-latest
outputs:
cores: ${{ steps.generate-matrix.outputs.cores }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
token: ${{secrets.PAT}} # Personal Access Token, must be defined in the repo's secrets
- 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_cores20:
if: false
runs-on: ubuntu-latest
defaults:
run:
shell: bash
needs:
- list_cores
strategy:
fail-fast: false
matrix:
core: ${{ fromJSON(needs.list_cores.outputs.cores) }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
token: ${{ secrets.PAT }}
- id: compile
run: |
# Compilation on Quartus 20.1
docker run -e BETAKEY=${{ secrets.BETAKEY }} --network host -v `pwd`:/jtcores jotego/jtcore20 /jtcores/modules/jtframe/devops/xjtcore.sh ${{matrix.core}} mister pocket sidi sidi128
- id: upload
uses: actions/upload-artifact@v3-node20
with:
name: release
path: release
retention-days: 1
upload:
if: false
runs-on: ubuntu-latest
needs: [ compile_cores20 ]
if: ${{ always() }} # upload the results even if some core did not compile correctly

Check failure on line 65 in .github/workflows/q20.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/q20.yaml

Invalid workflow file

You have an error in your yaml syntax on line 65
steps:
- uses: actions/checkout@v3
- name: Download all artifacts
uses: actions/download-artifact@v2
- name: Set zip file name
run: |
echo ARTIFACT_NAME=q20_`git rev-parse --short HEAD`.zip >> "$GITHUB_ENV"
echo COMMIT_DATE=$(git show -s --format=%ci 2> /dev/null) >> "$GITHUB_ENV"
- name: Make zip file
run: |
ls -l release/*
echo ARTIFACT_NAME=$ARTIFACT_NAME
zip -r $ARTIFACT_NAME release
touch -m -d "$COMMIT_DATE" "$ARTIFACT_NAME"
ls -l $ARTIFACT_NAME
- name: Upload bundle
uses: bayssmekanique/action-simple-file-upload@v2
with:
user: ${{ secrets.FTPUSER }}
password: ${{ secrets.FTPPASS }}
host: jotego.es
src: ${{ env.ARTIFACT_NAME }}
dest: ${{ env.ARTIFACT_NAME }}
- uses: geekyeggo/delete-artifact@v4
with:
name: $ARTIFACT_NAME