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 eb367cb commit 4a50701
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
40 changes: 27 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,24 @@ jobs:
cargo build --release --target=aarch64-apple-darwin
mv target/aarch64-apple-darwin/release/pingap ./pingap-darwin-aarch64
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
ls -lh pingap*.gz
./.github/workflows/upload_asset.sh ./pingap-darwin-aarch64.tar.gz $GITHUB_TOKEN
./.github/workflows/upload_asset.sh ./pingap-sentry-darwin-aarch64.tar.gz $GITHUB_TOKEN
./.github/workflows/upload_asset.sh ./pingap-darwin-x86.tar.gz $GITHUB_TOKEN
./.github/workflows/upload_asset.sh ./pingap-sentry-darwin-x86.tar.gz $GITHUB_TOKEN
linux-musl-x86:
Expand All @@ -64,15 +67,18 @@ jobs:
run: |
apt-get update
apt-get install protobuf-compiler -y
make release-all
make release-sentry
mv target/x86_64-unknown-linux-musl/release/pingap ./pingap-sentry-linux-musl-x86
make release
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
ls -lh pingap*.gz
./.github/workflows/upload_asset.sh ./pingap-linux-musl-x86.tar.gz $GITHUB_TOKEN
./.github/workflows/upload_asset.sh ./pingap-sentry-linux-musl-x86.tar.gz $GITHUB_TOKEN
linux-musl-aarch64:
Expand All @@ -91,15 +97,18 @@ jobs:
run: |
apt-get update
apt-get install protobuf-compiler -y
make release-all
make release-sentry
mv target/aarch64-unknown-linux-musl/release/pingap ./pingap-sentry-linux-musl-aarch64
make release
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
ls -lh pingap*.gz
./.github/workflows/upload_asset.sh ./pingap-linux-musl-aarch64.tar.gz $GITHUB_TOKEN
./.github/workflows/upload_asset.sh ./pingap-sentry-linux-musl-aarch64.tar.gz $GITHUB_TOKEN
linux-gnu-x86:
Expand All @@ -126,9 +135,11 @@ jobs:
- name: Upload Assets
run: |
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
tar -czvf pingap-sentry-linux-gnu-x86.tar.gz ./pingap-sentry-linux-gnu-x86
ls -lh pingap*.gz
./.github/workflows/upload_asset.sh ./pingap-linux-gnu-x86.tar.gz $GITHUB_TOKEN
./.github/workflows/upload_asset.sh ./pingap-sentry-linux-gnu-x86.tar.gz $GITHUB_TOKEN
linux-gnu-aarch64:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -181,6 +192,9 @@ jobs:
run: |
cp /tmp/pingap/usr/local/bin/pingap ./pingap
tar -czvf pingap-linux-gnu-aarch64.tar.gz ./pingap
ls -lh pingap*.gz
./.github/workflows/upload_asset.sh ./pingap-linux-gnu-aarch64.tar.gz $GITHUB_TOKEN
docker:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ release:
cargo build --release
ls -lh target/release

release-sentry:
cargo build --release --features=tracking
ls -lh target/release


release-all:
cargo build --release --features=tracking
mv target/release/pingap target/release/pingap-sentry
Expand Down

0 comments on commit 4a50701

Please sign in to comment.