Skip to content

Commit

Permalink
Adds setup.yaml composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Oct 20, 2023
1 parent 5ff5ba2 commit d76c9d0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
25 changes: 25 additions & 0 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Setup
description: "Sets up the workflow"
runs:
using: "composite"
steps:
- uses: crazy-max/ghaction-github-runtime@v3
- uses: extractions/setup-just@v1
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: actions/cache@v3
with:
path: var-cache-apt
key: var-cache-apt-${{ hashFiles('./build/ci/Dockerfile') }}
- uses: reproducible-containers/[email protected]
with:
cache-source: var-cache-apt
cache-target: /var/cache/apt
- uses: actions/cache@v3
with:
path: var-lib-apt
key: var-lib-apt-${{ hashFiles('./build/ci/Dockerfile') }}
- uses: reproducible-containers/[email protected]
with:
cache-source: var-lib-apt
cache-target: /var/lib/apt
21 changes: 1 addition & 20 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: crazy-max/ghaction-github-runtime@v3
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: extractions/setup-just@v1
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: actions/cache@v3
with:
path: var-cache-apt
key: var-cache-apt-${{ hashFiles('./build/ci/Dockerfile') }}
- uses: reproducible-containers/[email protected]
with:
cache-source: var-cache-apt
cache-target: /var/cache/apt
- uses: actions/cache@v3
with:
path: var-lib-apt
key: var-lib-apt-${{ hashFiles('./build/ci/Dockerfile') }}
- uses: reproducible-containers/[email protected]
with:
cache-source: var-lib-apt
cache-target: /var/lib/apt
- uses: ./.github/actions/setup
- run: just web install
- run: just web build
- run: just build
Expand Down

0 comments on commit d76c9d0

Please sign in to comment.