From eb367cb11352b27aca7e2f22a9d9d849b3400f23 Mon Sep 17 00:00:00 2001 From: vicanso Date: Sun, 13 Oct 2024 13:44:46 +0800 Subject: [PATCH] chore: update workflow --- .github/workflows/publish.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5642ff4f..ec83dd1c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,7 +10,7 @@ env: jobs: macos: - runs-on: macos-latest-xlarge + runs-on: macos-latest steps: - uses: actions/checkout@v4 - name: setup node @@ -33,11 +33,21 @@ jobs: tar -czvf pingap-darwin-aarch64.tar.gz pingap-darwin-aarch64 ./.github/workflows/upload_asset.sh ./pingap-darwin-aarch64.tar.gz $GITHUB_TOKEN + cargo build --release --target=aarch64-apple-darwin --features=tracking + mv target/aarch64-apple-darwin/release/pingap ./pingap-sentry-darwin-aarch64 + tar -czvf pingap-sentry-darwin-aarch64.tar.gz pingap-sentry-darwin-aarch64 + ./.github/workflows/upload_asset.sh ./pingap-sentry-darwin-aarch64.tar.gz $GITHUB_TOKEN + cargo build --release --target=x86_64-apple-darwin mv target/x86_64-apple-darwin/release/pingap ./pingap-darwin-x86 tar -czvf pingap-darwin-x86.tar.gz pingap-darwin-x86 ./.github/workflows/upload_asset.sh ./pingap-darwin-x86.tar.gz $GITHUB_TOKEN + cargo build --release --target=x86_64-apple-darwin --features=tracking + mv target/x86_64-apple-darwin/release/pingap ./pingap-sentry-darwin-x86 + tar -czvf pingap-sentry-darwin-x86.tar.gz pingap-sentry-darwin-x86 + ./.github/workflows/upload_asset.sh ./pingap-sentry-darwin-x86.tar.gz $GITHUB_TOKEN + linux-musl-x86: runs-on: ubuntu-latest steps: @@ -54,13 +64,17 @@ jobs: run: | apt-get update apt-get install protobuf-compiler -y - make release + make release-all mv target/x86_64-unknown-linux-musl/release/pingap ./pingap-linux-musl-x86 + mv target/x86_64-unknown-linux-musl/release/pingap-sentry ./pingap-sentry-linux-musl-x86 - name: Upload Assets run: | tar -czvf pingap-linux-musl-x86.tar.gz pingap-linux-musl-x86 ./.github/workflows/upload_asset.sh ./pingap-linux-musl-x86.tar.gz $GITHUB_TOKEN + tar -czvf pingap-sentry-linux-musl-x86.tar.gz pingap-sentry-linux-musl-x86 + ./.github/workflows/upload_asset.sh ./pingap-sentry-linux-musl-x86.tar.gz $GITHUB_TOKEN + linux-musl-aarch64: runs-on: ubuntu-latest steps: @@ -77,13 +91,17 @@ jobs: run: | apt-get update apt-get install protobuf-compiler -y - make release + make release-all mv target/aarch64-unknown-linux-musl/release/pingap ./pingap-linux-musl-aarch64 + mv target/aarch64-unknown-linux-musl/release/pingap-sentry ./pingap-sentry-linux-musl-aarch64 - name: Upload Assets run: | tar -czvf pingap-linux-musl-aarch64.tar.gz pingap-linux-musl-aarch64 ./.github/workflows/upload_asset.sh ./pingap-linux-musl-aarch64.tar.gz $GITHUB_TOKEN + tar -czvf pingap-sentry-linux-musl-aarch64.tar.gz pingap-sentry-linux-musl-aarch64 + ./.github/workflows/upload_asset.sh ./pingap-sentry-linux-musl-aarch64.tar.gz $GITHUB_TOKEN + linux-gnu-x86: runs-on: ubuntu-latest timeout-minutes: 3600 @@ -103,13 +121,13 @@ jobs: run: | make release-all ldd target/release/pingap + mv target/release/pingap ./pingap-linux-gnu-x86 + mv target/release/pingap-sentry ./pingap-sentry-linux-gnu-x86 - name: Upload Assets run: | - mv target/release/pingap ./pingap-linux-gnu-x86 tar -czvf pingap-linux-gnu-x86.tar.gz ./pingap-linux-gnu-x86 ./.github/workflows/upload_asset.sh ./pingap-linux-gnu-x86.tar.gz $GITHUB_TOKEN - mv target/release/pingap-sentry ./pingap-sentry-linux-gnu-x86 tar -czvf pingap-sentry-linux-gnu-x86.tar.gz ./pingap-sentry-linux-gnu-x86 ./.github/workflows/upload_asset.sh ./pingap-sentry-linux-gnu-x86.tar.gz $GITHUB_TOKEN linux-gnu-aarch64: