Skip to content

Commit

Permalink
chore: fix workflows ๐Ÿš€
Browse files Browse the repository at this point in the history
  • Loading branch information
latipun7 committed Mar 1, 2023
1 parent cbbc112 commit d2d37ed
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,26 @@ 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 }})
Expand Down Expand Up @@ -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

0 comments on commit d2d37ed

Please sign in to comment.