diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 436936b..46e1278 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 20f95d6..82df440 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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/ @@ -31,13 +30,13 @@ 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 @@ -45,11 +44,10 @@ jobs: 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/ @@ -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 }} @@ -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/ @@ -142,7 +139,7 @@ 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 @@ -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