-
-
Notifications
You must be signed in to change notification settings - Fork 12
51 lines (50 loc) · 1.26 KB
/
upload_artifacts.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
45
46
47
48
49
50
51
name: 'Upload artifacts'
on:
workflow_dispatch:
permissions:
contents: write
jobs:
upload_linux_artifact:
runs-on: "ubuntu-latest"
strategy:
matrix:
rust: [ nightly ]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: nightly
- uses: actions/checkout@master
- name: build libsensors
run: |
make libsensors
- name: build release
run: |
cargo build --release
- name: Upload Linux artifact
uses: actions/upload-artifact@v3.1.2
with:
name: fan-control
path: target/release/fan-control
# TODO: experiment cross compile: linux -> win
upload_linux_artifact:
runs-on: "windows-latest"
strategy:
matrix:
rust: [ nightly ]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: nightly
- uses: actions/checkout@master
- name: build lhm
run: |
cd LibreHardwareMonitorWrapper
dotnet build
- name: build release
run: |
cargo build --release
- name: Upload Linux artifact
uses: actions/upload-artifact@v3.1.2
with:
name: fan-control
path: target/release/fan-control