-
Notifications
You must be signed in to change notification settings - Fork 350
40 lines (36 loc) · 1.13 KB
/
publish_release_packages.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
name: Build and publish release packages
on:
push:
tags:
- "v*"
jobs:
build-macos-binaries:
name: Build ${{ matrix.target }}
runs-on: macos-latest
strategy:
matrix:
target: [x86_64-apple-darwin, aarch64-apple-darwin]
steps:
- uses: actions/checkout@v4
- name: Extract asset version
run: echo "ASSET_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- uses: ./.github/actions/cargo-build-macos-binary
with:
target: ${{ matrix.target }}
version: ${{ env.ASSET_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
build-linux-binaries:
strategy:
matrix:
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
name: Build ${{ matrix.target }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Extract asset version
run: echo "ASSET_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- uses: ./.github/actions/cross-build-binary
with:
target: ${{ matrix.target }}
version: ${{ env.ASSET_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}