Skip to content

Commit

Permalink
Update github actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Aug 21, 2024
1 parent 0d15c3d commit 975d151
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 32 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ on:

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.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@v5
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@v5
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@v5
with:
tags: sh4d0wup:smol
target: smol
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 @@ -111,10 +111,10 @@ jobs:
- img: sh4d0wup:full

name: ${{ matrix.variant.img }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Import docker image
run: zstd -cd container/sh4d0wup.tar.zst | docker load
- name: Setup config for excluded tests
Expand Down
41 changes: 19 additions & 22 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ env:

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -31,25 +30,24 @@ jobs:
restore-keys: ${{ runner.os }}-cargo-release-

- name: Install dependencies (apt)
run: sudo apt-get install libpcsclite-dev nettle-dev
run: sudo apt-get install liblzma-dev libpcsclite-dev nettle-dev

- name: Build
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

build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand Down Expand Up @@ -98,12 +96,12 @@ jobs:
- path: contrib/plot-curl-ipfs.yaml

name: ${{ matrix.plot.path }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Install dependencies (apt)
run: sudo apt-get install libpcsclite-dev nettle-dev
run: sudo apt-get install liblzma-dev libpcsclite-dev nettle-dev
- name: Setup environment
run: ${{ matrix.plot.setup }}
if: ${{ matrix.plot.setup }}
Expand All @@ -112,10 +110,10 @@ jobs:

make-plots:
needs: build
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Install dependencies (apt)
run: sudo apt-get install libpcsclite-dev nettle-dev
- name: Setup rust for musl target
Expand All @@ -124,13 +122,12 @@ jobs:
run: chmod +x bin/sh4d0wup && make sh4d0wup=bin/sh4d0wup -j8

unit-test:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -150,8 +147,8 @@ jobs:
run: cargo test --verbose

fmt:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run cargo fmt
run: cargo fmt --all -- --check

0 comments on commit 975d151

Please sign in to comment.