-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 966 Bytes
/
rust.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
name: Rust
on:
push:
branches: [ "main", "dev" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
platform: [ windows-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev
- name: Build
run: cargo build --all --release --verbose
- name: Strip binaries
if: matrix.platform != 'windows-latest'
run: |
strip target/release/tio-proxy
strip target/release/tio-tool
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: twinleaf-tools.${{ matrix.platform }}
path: |
target/release/tio-proxy
target/release/tio-proxy.exe
target/release/tio-tool
target/release/tio-tool.exe