From fc7739d9abb047f0514b92bde10fc313a78b5a94 Mon Sep 17 00:00:00 2001 From: chyyran Date: Wed, 2 Oct 2024 01:02:46 -0400 Subject: [PATCH] ci: update github actions --- .github/workflows/build.yml | 18 +++++++++--------- .github/workflows/publish-obs.yml | 2 +- Cargo.lock | 16 +++++++++++----- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bcd80f5..b9f3bb5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: - name: Build dynamic library run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} - name: Upload build artifacts - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.4.0 with: name: ${{ format('librashader-{0}-{1}-{2}', matrix.output, github.sha, matrix.profile) }} path: ${{ format('target/{0}/librashader.*', matrix.profile) }} @@ -51,7 +51,7 @@ jobs: if: matrix.profile == 'release' run: cargo build -p librashader-cli --release - name: Upload librashader-cli - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.4.0 if: matrix.profile == 'release' with: name: ${{ format('librashader-cli-{0}-{1}', matrix.output, github.sha) }} @@ -83,7 +83,7 @@ jobs: - name: Build dynamic library run: CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target aarch64-unknown-linux-gnu - name: Upload build artifacts - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.4.0 with: name: ${{ format('librashader-aarch64-ubuntu-{0}-{1}', github.sha, matrix.profile) }} path: ${{ format('target/aarch64-unknown-linux-gnu/{0}/librashader.*', matrix.profile) }} @@ -91,7 +91,7 @@ jobs: if: matrix.profile == 'release' run: CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc cargo build -p librashader-cli --release --target aarch64-unknown-linux-gnu - name: Upload librashader-cli - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.4.0 if: matrix.profile == 'release' with: name: ${{ format('librashader-cli-aarch64-ubuntu-{0}', github.sha) }} @@ -114,7 +114,7 @@ jobs: - name: Build dynamic library run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target aarch64-pc-windows-msvc - name: Upload build artifacts - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.4.0 with: name: ${{ format('librashader-aarch64-windows-{0}-{1}', github.sha, matrix.profile) }} path: ${{ format('target/aarch64-pc-windows-msvc/{0}/librashader.*', matrix.profile) }} @@ -122,7 +122,7 @@ jobs: if: matrix.profile == 'release' run: cargo build -p librashader-cli --release --target aarch64-pc-windows-msvc - name: Upload librashader-cli - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.4.0 if: matrix.profile == 'release' with: name: ${{ format('librashader-cli-aarch64-pc-windows-msvc-{0}', github.sha) }} @@ -145,15 +145,15 @@ jobs: - name: Build dynamic library run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target x86_64-win7-windows-msvc -- -Zbuild-std - name: Upload build artifacts - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.4.0 with: name: ${{ format('librashader-x86_64-win7-windows-{0}-{1}', github.sha, matrix.profile) }} path: ${{ format('target/x86_64-win7-windows-msvc/{0}/librashader.*', matrix.profile) }} - name: Build librashader CLI if: matrix.profile == 'release' - run: cargo build -p librashader-cli --release --target aarch64-pc-windows-msvc -Zbuild-std + run: cargo build -p librashader-cli --release --target x86_64-win7-windows-msvc -Zbuild-std - name: Upload librashader-cli - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.4.0 if: matrix.profile == 'release' with: name: ${{ format('librashader-cli-x86_64-win7-windows-msvc-{0}', github.sha) }} diff --git a/.github/workflows/publish-obs.yml b/.github/workflows/publish-obs.yml index ca8af6a..293a7ed 100644 --- a/.github/workflows/publish-obs.yml +++ b/.github/workflows/publish-obs.yml @@ -13,7 +13,7 @@ jobs: container: fedora:39 steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install OSC and dependencies env: OBS_CONFIG: ${{ secrets.OBS_CONFIG }} diff --git a/Cargo.lock b/Cargo.lock index 9868089..5edf965 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -480,9 +480,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.23" +version = "1.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bbb537bb4a30b90362caddba8f360c0a56bc13d3a5570028e7197204cb54a17" +checksum = "812acba72f0a070b003d3697490d2b55b837230ae7c6c6497f05cc2ddbb8d938" dependencies = [ "jobserver", "libc", @@ -1286,6 +1286,12 @@ dependencies = [ "allocator-api2", ] +[[package]] +name = "hashbrown" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb" + [[package]] name = "hassle-rs" version = "0.11.0" @@ -1378,12 +1384,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" +checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" dependencies = [ "equivalent", - "hashbrown 0.14.5", + "hashbrown 0.15.0", ] [[package]]