From 441113d0bc2d0cf96af42f80f0c095d2da322909 Mon Sep 17 00:00:00 2001 From: Jacob Chen Date: Mon, 4 Mar 2024 13:45:25 +0800 Subject: [PATCH 1/2] ci: Add release ci to build and upload binary files --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..18d5dad --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release + +on: + release: + types: [created] + +jobs: + release: + strategy: + matrix: + include: + - target: aarch64-unknown-linux-gnu + os: ubuntu-latest + - target: x86_64-unknown-linux-gnu + os: ubuntu-latest + - target: aarch64-apple-darwin + os: macos-latest + - target: x86_64-apple-darwin + os: macos-latest + - target: x86_64-pc-windows-msvc + os: windows-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: taiki-e/upload-rust-binary-action@v1 + with: + bin: vtracer + target: ${{ matrix.target }} + # (required) GitHub token for uploading assets to GitHub Releases. + token: ${{ secrets.GITHUB_TOKEN }} From 44e6951fe260752c16c72c868d77be6cf3cc6daa Mon Sep 17 00:00:00 2001 From: Jacob Chen Date: Tue, 5 Mar 2024 10:36:08 +0800 Subject: [PATCH 2/2] ci(release): Using musl instead of gnu to privde static linked build --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18d5dad..097dae6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,9 +9,9 @@ jobs: strategy: matrix: include: - - target: aarch64-unknown-linux-gnu + - target: aarch64-unknown-linux-musl os: ubuntu-latest - - target: x86_64-unknown-linux-gnu + - target: x86_64-unknown-linux-musl os: ubuntu-latest - target: aarch64-apple-darwin os: macos-latest