Skip to content

add some workflows

add some workflows #1

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:

Check failure on line 30 in .github/workflows/upload_artifacts.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/upload_artifacts.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
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