Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github actions versions #34

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
45 changes: 21 additions & 24 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,25 +110,24 @@ 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
run: sudo apt-get install liblzma-dev libpcsclite-dev nettle-dev
- name: Setup rust for musl target
run: rustup target add x86_64-unknown-linux-musl
- name: Compile all plots
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 @@ -142,16 +139,16 @@ jobs:
restore-keys: ${{ runner.os }}-cargo-debug-

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

- name: Run clippy
run: cargo clippy -- -D warnings
- name: Run tests
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
Loading