Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <[email protected]>
  • Loading branch information
Adrian Cole committed Apr 25, 2023
1 parent 67b71c0 commit 9c44e50
Showing 1 changed file with 29 additions and 28 deletions.
57 changes: 29 additions & 28 deletions .github/workflows/packaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
runs-on: windows-2022
strategy:
fail-fast: false # don't fail fast as sometimes failures are operating system specific

steps:
- name: "Setup msitools, wixtoolset, osslsigncode"
run: |
choco install osslsigncode -y
choco install zip -y
echo "$WIX\\bin" >> $GITHUB_PATH
echo "${HOME}\\osslsigncode" >> $GITHUB_PATH
env: # `gh` requires auth even on public releases
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -99,31 +99,32 @@ jobs:
matrix:
os: [ubuntu-22.04, macos-12, windows-2022]

- uses: actions/checkout@v3
steps:
- uses: actions/checkout@v3

- uses: actions/cache@v3
id: cache
with:
# We need this cache to run tests.
fail-on-cache-miss: true
enableCrossOsArchive: true
key: release-artifacts-${{ github.run_id }}
path:
dist/
- uses: actions/cache@v3
id: cache
with:
# We need this cache to run tests.
fail-on-cache-miss: true
enableCrossOsArchive: true
key: release-artifacts-${{ github.run_id }}
path:
dist/

# This only checks the installer when built on Windows as it is simpler than switching OS.
# refreshenv is from choco, and lets you reload ENV variables (used here for PATH).
- name: "Test Windows Installer (Windows)"
if: runner.os == 'Windows'
run: call packaging\msi\verify_msi.cmd
shell: cmd

- name: "Test Debian package"
if: runner.os == 'Linux'
run: packaging/nfpm/verify_deb.sh

# This only checks the installer when built on Windows as it is simpler than switching OS.
# refreshenv is from choco, and lets you reload ENV variables (used here for PATH).
- name: "Test Windows Installer (Windows)"
if: runner.os == 'Windows'
run: call packaging\msi\verify_msi.cmd
shell: cmd

- name: "Test Debian package"
if: runner.os == 'Linux'
run: packaging/nfpm/verify_deb.sh

- name: "Test RPM package (CentOS)"
if: runner.os == 'Linux'
run: docker run --rm -v $PWD:/work --entrypoint packaging/nfpm/verify_rpm.sh ${CENTOS_IMAGE}
env: # CENTOS_IMAGE was built by internal-images.yaml
CENTOS_IMAGE: ghcr.io/tetratelabs/func-e-internal:centos-9
- name: "Test RPM package (CentOS)"
if: runner.os == 'Linux'
run: docker run --rm -v $PWD:/work --entrypoint packaging/nfpm/verify_rpm.sh ${CENTOS_IMAGE}
env: # CENTOS_IMAGE was built by internal-images.yaml
CENTOS_IMAGE: ghcr.io/tetratelabs/func-e-internal:centos-9

0 comments on commit 9c44e50

Please sign in to comment.