enhance: update to official v3.10.3 #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Origin config by @Kilerd | |
name: Build Canary Version | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
release: | |
name: Release on ${{ matrix.platform }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
platform: [macos-x86_64, linux_glibc-x86_64, windows-i686, windows-x86_64] | |
include: | |
- platform: macos-x86_64 | |
target: x86_64-apple-darwin | |
os: macos-latest | |
bin: phigbot | |
- platform: linux_glibc-x86_64 | |
target: x86_64-unknown-linux-gnu | |
os: ubuntu-latest | |
bin: phigbot | |
- platform: windows-i686 | |
target: i686-pc-windows-msvc | |
os: windows-latest | |
bin: phigbot.exe | |
- platform: windows-x86_64 | |
target: x86_64-pc-windows-msvc | |
os: windows-latest | |
bin: phigbot.exe | |
steps: | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
target: ${{ matrix.target }} | |
toolchain: nightly | |
override: true | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Run code build | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: nightly | |
command: build | |
args: --release --target ${{ matrix.target }} | |
- name: Prepare assets | |
shell: bash | |
run: | | |
mv target/${{ matrix.target }}/release/${{ matrix.bin }} . | |
tar -cvf ${{ matrix.target }}.tar ${{ matrix.bin }} LICENSE | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{ matrix.target }}.tar | |
tag_name: 0.2.0 |