ci: update github actions

This commit is contained in:
chyyran 2024-10-02 01:02:46 -04:00
parent 4a8a9ee444
commit fc7739d9ab
3 changed files with 21 additions and 15 deletions

View file

@ -38,7 +38,7 @@ jobs:
- name: Build dynamic library - name: Build dynamic library
run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }}
- name: Upload build artifacts - name: Upload build artifacts
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v4.4.0
with: with:
name: ${{ format('librashader-{0}-{1}-{2}', matrix.output, github.sha, matrix.profile) }} name: ${{ format('librashader-{0}-{1}-{2}', matrix.output, github.sha, matrix.profile) }}
path: ${{ format('target/{0}/librashader.*', matrix.profile) }} path: ${{ format('target/{0}/librashader.*', matrix.profile) }}
@ -51,7 +51,7 @@ jobs:
if: matrix.profile == 'release' if: matrix.profile == 'release'
run: cargo build -p librashader-cli --release run: cargo build -p librashader-cli --release
- name: Upload librashader-cli - name: Upload librashader-cli
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v4.4.0
if: matrix.profile == 'release' if: matrix.profile == 'release'
with: with:
name: ${{ format('librashader-cli-{0}-{1}', matrix.output, github.sha) }} name: ${{ format('librashader-cli-{0}-{1}', matrix.output, github.sha) }}
@ -83,7 +83,7 @@ jobs:
- name: Build dynamic library - 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 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 - name: Upload build artifacts
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v4.4.0
with: with:
name: ${{ format('librashader-aarch64-ubuntu-{0}-{1}', github.sha, matrix.profile) }} name: ${{ format('librashader-aarch64-ubuntu-{0}-{1}', github.sha, matrix.profile) }}
path: ${{ format('target/aarch64-unknown-linux-gnu/{0}/librashader.*', matrix.profile) }} path: ${{ format('target/aarch64-unknown-linux-gnu/{0}/librashader.*', matrix.profile) }}
@ -91,7 +91,7 @@ jobs:
if: matrix.profile == 'release' 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 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 - name: Upload librashader-cli
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v4.4.0
if: matrix.profile == 'release' if: matrix.profile == 'release'
with: with:
name: ${{ format('librashader-cli-aarch64-ubuntu-{0}', github.sha) }} name: ${{ format('librashader-cli-aarch64-ubuntu-{0}', github.sha) }}
@ -114,7 +114,7 @@ jobs:
- name: Build dynamic library - name: Build dynamic library
run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target aarch64-pc-windows-msvc run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target aarch64-pc-windows-msvc
- name: Upload build artifacts - name: Upload build artifacts
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v4.4.0
with: with:
name: ${{ format('librashader-aarch64-windows-{0}-{1}', github.sha, matrix.profile) }} name: ${{ format('librashader-aarch64-windows-{0}-{1}', github.sha, matrix.profile) }}
path: ${{ format('target/aarch64-pc-windows-msvc/{0}/librashader.*', matrix.profile) }} path: ${{ format('target/aarch64-pc-windows-msvc/{0}/librashader.*', matrix.profile) }}
@ -122,7 +122,7 @@ jobs:
if: matrix.profile == 'release' if: matrix.profile == 'release'
run: cargo build -p librashader-cli --release --target aarch64-pc-windows-msvc run: cargo build -p librashader-cli --release --target aarch64-pc-windows-msvc
- name: Upload librashader-cli - name: Upload librashader-cli
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v4.4.0
if: matrix.profile == 'release' if: matrix.profile == 'release'
with: with:
name: ${{ format('librashader-cli-aarch64-pc-windows-msvc-{0}', github.sha) }} name: ${{ format('librashader-cli-aarch64-pc-windows-msvc-{0}', github.sha) }}
@ -145,15 +145,15 @@ jobs:
- name: Build dynamic library - name: Build dynamic library
run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target x86_64-win7-windows-msvc -- -Zbuild-std run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target x86_64-win7-windows-msvc -- -Zbuild-std
- name: Upload build artifacts - name: Upload build artifacts
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v4.4.0
with: with:
name: ${{ format('librashader-x86_64-win7-windows-{0}-{1}', github.sha, matrix.profile) }} 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) }} path: ${{ format('target/x86_64-win7-windows-msvc/{0}/librashader.*', matrix.profile) }}
- name: Build librashader CLI - name: Build librashader CLI
if: matrix.profile == 'release' 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 - name: Upload librashader-cli
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v4.4.0
if: matrix.profile == 'release' if: matrix.profile == 'release'
with: with:
name: ${{ format('librashader-cli-x86_64-win7-windows-msvc-{0}', github.sha) }} name: ${{ format('librashader-cli-x86_64-win7-windows-msvc-{0}', github.sha) }}

View file

@ -13,7 +13,7 @@ jobs:
container: fedora:39 container: fedora:39
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Install OSC and dependencies - name: Install OSC and dependencies
env: env:
OBS_CONFIG: ${{ secrets.OBS_CONFIG }} OBS_CONFIG: ${{ secrets.OBS_CONFIG }}

16
Cargo.lock generated
View file

@ -480,9 +480,9 @@ dependencies = [
[[package]] [[package]]
name = "cc" name = "cc"
version = "1.1.23" version = "1.1.24"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3bbb537bb4a30b90362caddba8f360c0a56bc13d3a5570028e7197204cb54a17" checksum = "812acba72f0a070b003d3697490d2b55b837230ae7c6c6497f05cc2ddbb8d938"
dependencies = [ dependencies = [
"jobserver", "jobserver",
"libc", "libc",
@ -1286,6 +1286,12 @@ dependencies = [
"allocator-api2", "allocator-api2",
] ]
[[package]]
name = "hashbrown"
version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb"
[[package]] [[package]]
name = "hassle-rs" name = "hassle-rs"
version = "0.11.0" version = "0.11.0"
@ -1378,12 +1384,12 @@ dependencies = [
[[package]] [[package]]
name = "indexmap" name = "indexmap"
version = "2.5.0" version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da"
dependencies = [ dependencies = [
"equivalent", "equivalent",
"hashbrown 0.14.5", "hashbrown 0.15.0",
] ]
[[package]] [[package]]