From e3c1ba75f1486944df40695242ce066410adb5a0 Mon Sep 17 00:00:00 2001 From: Latif Sulistyo Date: Wed, 1 Mar 2023 14:32:21 +0700 Subject: [PATCH] =?UTF-8?q?chore:=20fix=20workflows=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see: https://github.com/actions/runner/issues/480 --- .github/workflows/gh-release.yml | 37 +++++++++++++------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/.github/workflows/gh-release.yml b/.github/workflows/gh-release.yml index c725459..0e87692 100644 --- a/.github/workflows/gh-release.yml +++ b/.github/workflows/gh-release.yml @@ -4,43 +4,36 @@ on: push: tags: ["*"] -env: - WIN_ARTIFACT: chara-windows-x86_64 - LINUX_ARTIFACT: chara-linux-x86_64 - LINUX_AARCH_ARTIFACT: chara-linux-aarch64 - MACOS_ARTIFACT: chara-macos-x86_64 - MACOS_AARCH_ARTIFACT: chara-macos-aarch64 - jobs: build-artifacts: strategy: matrix: include: - os: windows-latest - artifact-name: ${{ env.WIN_ARTIFACT }} + artifact-name: chara-windows-x86_64 cargo-target: x86_64-pc-windows-msvc - os: ubuntu-latest - artifact-name: ${{ env.LINUX_ARTIFACT }} + artifact-name: chara-linux-x86_64 cargo-target: x86_64-unknown-linux-gnu - os: ubuntu-latest - artifact-name: ${{ env.LINUX_AARCH_ARTIFACT }} + artifact-name: chara-linux-aarch64 cargo-target: aarch64-unknown-linux-gnu linker: gcc-aarch64-linux-gnu - os: macos-latest - artifact-name: ${{ env.MACOS_ARTIFACT }} + artifact-name: chara-macos-x86_64 cargo-target: x86_64-apple-darwin - os: macos-latest - artifact-name: ${{ env.MACOS_AARCH_ARTIFACT }} + artifact-name: chara-macos-aarch64 cargo-target: aarch64-apple-darwin name: ⚙️ Build (${{ matrix.artifact-name }}) runs-on: ${{ matrix.os }} steps: - name: 🛎️ Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v3.3.0 - name: ✨ Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@v1.0.7 with: toolchain: nightly target: ${{ matrix.cargo-target }} @@ -71,9 +64,9 @@ jobs: fi - name: ⬆️ Upload Binary Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v3.1.2 with: - name: ${{ matrix.artifact-name }} + name: ${{ matrix.artifact-name }}.zip path: release.zip retention-days: 5 @@ -84,7 +77,7 @@ jobs: steps: - name: ⬇️ Download All Binary Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v3.0.2 - name: 🗃️Create Draft Release uses: softprops/action-gh-release@v1 @@ -94,8 +87,8 @@ jobs: draft: true generate_release_notes: true files: | - ${{ env.WIN_ARTIFACT }}.zip - ${{ env.LINUX_ARTIFACT }}.zip - ${{ env.LINUX_AARCH_ARTIFACT }}.zip - ${{ env.MACOS_ARTIFACT }}.zip - ${{ env.MACOS_AARCH_ARTIFACT }}.zip + chara-linux-x86_64.zip + chara-linux-aarch64.zip + chara-macos-x86_64.zip + chara-macos-aarch64.zip + chara-windows-x86_64.zip