Skip to content

compile-inno-setup

compile-inno-setup #1

name: compile-inno-setup
on:
release:
types: [published]
permissions:
contents: write
id-token: write
packages: write
jobs:
compile-inno-setup:

Check failure on line 13 in .github/workflows/compile-inno-setup.yml

View workflow run for this annotation

GitHub Actions / compile-inno-setup

Invalid workflow file

The workflow is not valid. .github/workflows/compile-inno-setup.yml (Line: 13, Col: 3): The workflow must contain at least one job with no dependencies.
name: Compile setup and publish
needs: release
runs-on: windows-latest
defaults:
run:
working-directory: inno_setup
steps:
- name: Checkout version-fox
uses: actions/checkout@v3
- name: Get version-fox version
id: version-fox-version
uses: actions/github-script@v6
with:
github-token: NO_NEED
result-encoding: string
script: return "${{ github.ref }}".substring(11)
- name: Install Inno Setup
run: |
curl --retry 10 --retry-all-errors -L -o installer.exe https://jrsoftware.org/download.php/is.exe
./installer.exe /verysilent /allusers /dir=inst
sleep 60
- name: Download version-fox packages
env:
VFOX_VERSION: ${{ steps.version-fox-version.outputs.result }}
DOWNLOAD_URL: https://github.com/${{ github.event.repository.full_name }}/releases/download
run: |
curl -L -o i386.zip ${{ env.DOWNLOAD_URL }}/v${{ env.VFOX_VERSION }}/vfox_${{ env.VFOX_VERSION }}_windows_i386.zip && unzip i386.zip
curl -L -o x86_64.zip ${{ env.DOWNLOAD_URL }}/v${{ env.VFOX_VERSION }}/vfox_${{ env.VFOX_VERSION }}_windows_x86_64.zip && unzip x86_64.zip
curl -L -o aarch64.zip ${{ env.DOWNLOAD_URL }}/v${{ env.VFOX_VERSION }}/vfox_${{ env.VFOX_VERSION }}_windows_aarch64.zip && unzip aarch64.zip
- name: Compile by Inno Setup
env:
VFOX_VERSION: ${{ steps.version-fox-version.outputs.result }}
run: |
./inst/iscc vfox_windows_i386.iss
./inst/iscc vfox_windows_x86_64.iss
./inst/iscc vfox_windows_aarch64.iss
- name: Upload Inno Setup Assets
uses: trzsz/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ github.event.release.id }}
assets_path: inno_setup/Output/*.exe