From 463bd23427c647d3f7801462d45847b04faa6f82 Mon Sep 17 00:00:00 2001 From: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Date: Mon, 27 Sep 2021 15:12:48 +0530 Subject: [PATCH] ci: Change Windows build target (#175) --- .github/workflows/release.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 385e6ca..791fb50 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,31 +83,28 @@ jobs: asset_content_type: application/zip release-windows: - name: x86_64-pc-windows-gnu + name: x86_64-pc-windows-msvc needs: create_release - runs-on: ubuntu-latest - strategy: - matrix: - target: [x86_64-pc-windows-gnu] + runs-on: windows-latest steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: toolchain: stable - target: ${{ matrix.target }} override: true - uses: actions-rs/cargo@v1 with: - use-cross: true command: build - args: --release --target ${{ matrix.target }} + args: --release - id: get_name + shell: bash run: | - echo ::set-output name=NAME::silicon-${GITHUB_REF/refs\/tags\//}-${{ matrix.target }}.tar.gz + echo ::set-output name=NAME::silicon-${GITHUB_REF/refs\/tags\//}-x86_64-pc-windows-msvc.tar.gz echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - - run: | + - shell: bash + run: | shopt -s extglob - tar czf ${{ steps.get_name.outputs.NAME }} -C ./target/${{ matrix.target }}/release silicon.exe + tar czf ${{ steps.get_name.outputs.NAME }} -C ./target/release silicon.exe - uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}