From b9ff7f649574f5503b465b0aba951cea1cd88499 Mon Sep 17 00:00:00 2001 From: Zack3D Date: Mon, 22 Sep 2025 01:05:11 -0700 Subject: [PATCH] balls --- .gitea/workflows/ci-reusable.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci-reusable.yml b/.gitea/workflows/ci-reusable.yml index f2c93bd..b995b78 100644 --- a/.gitea/workflows/ci-reusable.yml +++ b/.gitea/workflows/ci-reusable.yml @@ -34,10 +34,6 @@ jobs: run: | cargo fmt --all -- --check - - name: Benchmark (Linux only) - if: runner.os == 'Linux' - run: cargo bench --bench heart - - name: Security audit (Linux only) if: runner.os == 'Linux' run: | @@ -56,10 +52,19 @@ jobs: # Determine target directory and library extension TARGET_DIR="target/release" + # Map runner.arch to Rust target arch + case "${{ runner.arch }}" in + ARM64) ARCH_TRIPLE="aarch64" ;; + X64) ARCH_TRIPLE="x86_64" ;; + *) ARCH_TRIPLE="unknown" ;; + esac + + # Compose package basename with OS + arch case "${{ runner.os }}" in - Linux) PKG_BASENAME="medicallib_rust-v${VERSION}-x86_64-unknown-linux-gnu" ;; - Windows) PKG_BASENAME="medicallib_rust-v${VERSION}-x86_64-pc-windows-msvc" ;; - *) PKG_BASENAME="medicallib_rust-v${VERSION}-native" ;; + Linux) PKG_BASENAME="medicallib_rust-v${VERSION}-${ARCH_TRIPLE}-unknown-linux-gnu" ;; + Windows) PKG_BASENAME="medicallib_rust-v${VERSION}-${ARCH_TRIPLE}-pc-windows-msvc" ;; + macOS) PKG_BASENAME="medicallib_rust-v${VERSION}-${ARCH_TRIPLE}-apple-darwin" ;; + *) PKG_BASENAME="medicallib_rust-v${VERSION}-native" ;; esac PKG_DIR="dist/${PKG_BASENAME}" @@ -90,7 +95,9 @@ jobs: - name: Upload artifacts if: inputs.upload-artifacts - uses: actions/upload-artifact@v4 + # NOTE: @v4 uses @actions/artifact v2 which is not supported on GHES/Gitea yet. + # Pin to v3 for compatibility with Gitea and older GHES runners. + uses: actions/upload-artifact@v3 with: name: medicallib-rust-${{ runner.os }} path: dist/