Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed Aug 26, 2023
1 parent 110dd92 commit f0c32f5
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: release

on:
push:
tags:
- v[0-9]+.*

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

upload-assets:
strategy:
fail-fast: false
matrix:
include:
- { os: macos-latest, target: x86_64-apple-darwin, build_tool: cargo }
- {
os: macos-latest,
target: x86_64h-apple-darwin,
build_tool: cargo,
}
- {
os: macos-latest,
target: aarch64-apple-darwin,
build_tool: cargo,
}
- {
os: ubuntu-latest,
target: x86_64-unknown-linux-gnu.2.17,
build_tool: cargo-zigbuild,
}
- {
os: ubuntu-latest,
target: aarch64-unknown-linux-gnu.2.17,
build_tool: cargo-zigbuild,
}
- {
os: ubuntu-latest,
target: x86_64-unknown-linux-musl,
build_tool: cargo-zigbuild,
}
- {
os: ubuntu-latest,
target: aarch64-unknown-linux-musl,
build_tool: cargo-zigbuild,
}
- {
os: windows-latest,
target: x86_64-pc-windows-msvc,
build_tool: cargo,
}
- {
os: windows-latest,
target: aarch64-pc-windows-msvc,
build_tool: cargo,
}

runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

- name: Build and upload binary
uses: taiki-e/upload-rust-binary-action@v1
with:
bin: fift
target: ${{ matrix.target }}
build_tool: ${{ matrix.build_tool }}
token: ${{ secrets.GITHUB_TOKEN }}
checksum: sha512

0 comments on commit f0c32f5

Please sign in to comment.