-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (37 loc) · 1.1 KB
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Continuous deployment
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
publish:
name: Publish assets for ${{ matrix.job.os }}
runs-on: ${{ matrix.job.os }}
strategy:
matrix:
job:
- { os: macos-latest, target: x86_64-apple-darwin }
- { os: windows-latest, target: x86_64-pc-windows-msvc }
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
steps:
- uses: actions/checkout@v4
- name: Install toolchain
run: |
rustup set profile minimal
rustup toolchain install stable-${{ matrix.job.target }}
- name: Build
run: |
cargo build --release --target ${{ matrix.job.target }}
- name: Package
env:
TARGET: ${{ matrix.job.target }}
CRATE_NAME: fq
OS_NAME: ${{ matrix.job.os }}
shell: bash
run: .github/scripts/before_deploy.sh
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: fq-*-${{ matrix.job.target }}.*