From af2994a6d712a4fc4916b56e593cbec2f62ab051 Mon Sep 17 00:00:00 2001 From: Jonson Petard <41122242+greenhat616@users.noreply.github.com> Date: Fri, 15 Sep 2023 21:45:40 +0800 Subject: [PATCH] feat: more release build target --- .github/workflows/release.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cc82819..6d6ceb3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: jobs: create_release : if: startsWith(github.ref, 'refs/tags/') - name: release ${{ matrix.target }} + name: Create Release runs-on: ubuntu-latest steps: - name: Checkout Code @@ -34,7 +34,7 @@ jobs: token: ${{ github.token }} release: - name: release + name: Build Release needs: create_release runs-on: ${{ matrix.os }} strategy: @@ -43,17 +43,27 @@ jobs: - target: x86_64-apple-darwin os: macos-latest archive: tar.gz - - target: x86_64-pc-windows-gnu + - target: aarch64-apple-darwin + os: macos-latest + archive: tar.gz + - target: x86_64-pc-windows-msvc os: windows-latest ext: .exe archive: zip - - target: x86_64-pc-windows-msvc + - target: aarch64-pc-windows-msvc + os: windows-latest + ext: .exe + archive: zip + - target: i686-pc-windows-msvc os: windows-latest ext: .exe archive: zip - target: x86_64-unknown-linux-gnu os: ubuntu-latest archive: tar.gz + - target: aarch64-unknown-linux-gnu + os: ubuntu-latest + archive: tar.gz - target: x86_64-unknown-linux-musl os: ubuntu-latest archive: tar.gz @@ -65,6 +75,15 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Cargo build run: | rustup toolchain install nightly --profile minimal -t ${{ matrix.target }}