fix: remove actions/upload-artifact (unsupported on Forgejo)
Some checks failed
Build Release Binaries / build-amd64 (push) Has been cancelled
Some checks failed
Build Release Binaries / build-amd64 (push) Has been cancelled
Forgejo doesn't support @actions/artifact v4. Package the tarball and print sizes instead. Binaries can be grabbed from the runner workspace or deployed directly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -32,16 +32,6 @@ jobs:
|
|||||||
apt-get update && apt-get install -y cmake pkg-config libasound2-dev ninja-build
|
apt-get update && apt-get install -y cmake pkg-config libasound2-dev ninja-build
|
||||||
rustc --version
|
rustc --version
|
||||||
|
|
||||||
- name: Cache cargo
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/registry
|
|
||||||
~/.cargo/git
|
|
||||||
target
|
|
||||||
key: cargo-amd64-${{ hashFiles('Cargo.lock') }}
|
|
||||||
restore-keys: cargo-amd64-
|
|
||||||
|
|
||||||
- name: Build relay + tools
|
- name: Build relay + tools
|
||||||
run: |
|
run: |
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
@@ -52,36 +42,11 @@ jobs:
|
|||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
cargo test --workspace --lib
|
cargo test --workspace --lib
|
||||||
|
|
||||||
- name: Package
|
- name: Package + upload
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist/wzp-linux-amd64
|
mkdir -p dist
|
||||||
cp target/release/wzp-relay dist/wzp-linux-amd64/
|
tar czf dist/wzp-linux-amd64.tar.gz \
|
||||||
cp target/release/wzp-client dist/wzp-linux-amd64/
|
-C target/release wzp-relay wzp-client wzp-web wzp-bench
|
||||||
cp target/release/wzp-web dist/wzp-linux-amd64/
|
echo "Build artifacts:"
|
||||||
cp target/release/wzp-bench dist/wzp-linux-amd64/
|
ls -lh dist/
|
||||||
cp -r crates/wzp-web/static dist/wzp-linux-amd64/ 2>/dev/null || true
|
ls -lh target/release/wzp-relay target/release/wzp-client
|
||||||
cd dist && tar czf wzp-linux-amd64.tar.gz wzp-linux-amd64/
|
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: wzp-linux-amd64
|
|
||||||
path: dist/wzp-linux-amd64.tar.gz
|
|
||||||
|
|
||||||
release:
|
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
|
||||||
needs: [build-amd64]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Download all artifacts
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
path: artifacts
|
|
||||||
|
|
||||||
- name: Create release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
files: artifacts/**/*.tar.gz
|
|
||||||
generate_release_notes: true
|
|
||||||
|
|||||||
Reference in New Issue
Block a user