Skip to content

Commit

Permalink
Merge pull request #38 from kpcyrd/actions
Browse files Browse the repository at this point in the history
Update github actions
  • Loading branch information
kpcyrd authored Nov 13, 2024
2 parents 220d9e1 + feb5bf5 commit ddada54
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3

- name: Build Docker image (full)
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
tags: sh4d0wup:full
target: full
Expand All @@ -24,7 +24,7 @@ jobs:
cache-to: type=gha,mode=max

- name: Build Docker image (default)
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
tags: sh4d0wup:default
target: default
Expand All @@ -33,7 +33,7 @@ jobs:
cache-to: type=gha,mode=max

- name: Build Docker image (smol)
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
tags: sh4d0wup:smol
target: smol
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Login to github container registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
run: docker save sh4d0wup | zstd -T0 -10 > sh4d0wup.tar.zst

- name: Upload as github artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: container
path: sh4d0wup.tar.zst
Expand All @@ -113,10 +113,12 @@ jobs:
name: ${{ matrix.variant.img }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: container
- name: Import docker image
run: zstd -cd container/sh4d0wup.tar.zst | docker load
run: zstd -cd sh4d0wup.tar.zst | docker load
- name: Setup config for excluded tests
run: |
mkdir -vp build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: cargo build --release --verbose

- name: Upload binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: bin
path: target/release/sh4d0wup
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
- name: Install dependencies (apt)
run: sudo apt-get install libpcsclite-dev
- name: Setup environment
Expand All @@ -159,7 +159,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
- name: Install dependencies (apt)
run: sudo apt-get install libpcsclite-dev
- name: Setup rust for musl target
Expand Down

0 comments on commit ddada54

Please sign in to comment.