@@ -2,40 +2,36 @@ name: Rust
22
33on :
44 push :
5- branches : [ "main", "dev" ]
5+ branches : ["main", "dev"]
66
77env :
88 CARGO_TERM_COLOR : always
99
1010jobs :
1111 build :
12-
1312 strategy :
1413 matrix :
15- platform : [ windows-latest, macos-latest, ubuntu-latest]
14+ platform : [windows-latest, macos-latest, ubuntu-latest]
1615
1716 runs-on : ${{ matrix.platform }}
1817
1918 steps :
20- - uses : actions/checkout@v4
21- - name : Install dependencies
22- if : matrix.platform == 'ubuntu-latest'
23- run : |
24- sudo apt-get update
25- sudo apt-get install -y libudev-dev
26- - name : Build
27- run : cargo build --all --release --verbose
28- - name : Strip binaries
29- if : matrix.platform != 'windows-latest'
30- run : |
31- strip target/release/tio-proxy
32- strip target/release/tio-tool
33- - name : Upload binaries
34- uses : actions/upload-artifact@v4
35- with :
36- name : twinleaf-tools.${{ matrix.platform }}
37- path : |
38- target/release/tio-proxy
39- target/release/tio-proxy.exe
40- target/release/tio-tool
41- target/release/tio-tool.exe
19+ - uses : actions/checkout@v4
20+ - name : Install dependencies
21+ if : matrix.platform == 'ubuntu-latest'
22+ run : |
23+ sudo apt-get update
24+ sudo apt-get install -y libudev-dev
25+ - name : Build
26+ run : cargo build --all --release --verbose
27+ - name : Strip binaries
28+ if : matrix.platform != 'windows-latest'
29+ run : |
30+ strip target/release/tio
31+ - name : Upload binaries
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : twinleaf-tools.${{ matrix.platform }}
35+ path : |
36+ target/release/tio
37+ target/release/tio.exe
0 commit comments