Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Oct 13, 2024
1 parent c233ba3 commit eb367cb
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
macos:
runs-on: macos-latest-xlarge
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: setup node
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit eb367cb

Please sign in to comment.