-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 787 Bytes
/
Copy pathrelease.yml
File metadata and controls
33 lines (30 loc) · 787 Bytes
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
name: release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: macos-latest
target: aarch64-apple-darwin
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@1.95.0
- uses: Swatinem/rust-cache@v2
- run: cargo build --release -p ras-cli -p ras-daemon
- name: package
run: |
mkdir dist
cp target/release/ras dist/ras-${{ matrix.target }}
cp target/release/ras-daemon dist/ras-daemon-${{ matrix.target }}
- uses: softprops/action-gh-release@v3
with:
files: dist/*