Skip to content

Commit

Permalink
Add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
nsg committed Oct 28, 2023
1 parent 88d9922 commit c59c32a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build-release-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,31 @@ on:

jobs:
haproxy:
name: Build HAProxy snap package
name: Build HAProxy
runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v3

- uses: actions/cache@v3
id: cache
with:
key: ${{ hashFiles('dependencies/haproxy/snapcraft.yaml') }}
path: *.snap

- name: Build snap package
uses: snapcore/action-build@v1
if: steps.cache-primes.outputs.cache-hit != 'true'
id: build
with:
path: dependencies/haproxy

- name: Upload test report
- name: Save snap package as an artifact
uses: actions/upload-artifact@v3
with:
name: haproxy
path: ${{ steps.build.outputs.snap }}
path: *.snap

prepare-dependencies:
name: Prepare dependencies
Expand All @@ -49,7 +56,7 @@ jobs:
find dependencies/artifacts
mkdir -p dependencies/workdir
for artifact in dependencies/artifacts/*; do
unsquashfs -d dependencies/workdir/$artifact dependencies/artifacts/$artifact/dependencies/$artifact/*.snap
unsquashfs -d dependencies/workdir/$artifact dependencies/artifacts/$artifact/*.snap
done
build:
Expand Down

0 comments on commit c59c32a

Please sign in to comment.