Skip to content

Commit

Permalink
First try to add a new Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilSodergren committed Oct 18, 2024
1 parent 5086295 commit 23144fe
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/rust_tuyapi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Rust tuyapi

on: [push, pull_request]

jobs:
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.channel }}
target: ${{ matrix.target }}
- uses: action-rs/cargo@v1
with:
use-cross: true
command: build
args: --target ${{ matrix.target }} --release --all-features

strategy:
fail-fast: true
matrix:
channel: [stable, beta, nightly]
target:
# WASM, off by default as most rust projects aren't compatible yet.
# - wasm32-unknown-emscripten
# Linux
# - aarch64-unknown-linux-gnu
# - aarch64-unknown-linux-musl
# - arm-unknown-linux-gnueabi
- arm-unknown-linux-gnueabihf
- armv7-unknown-linux-gnueabihf
# - armv7-unknown-linux-musleabihf
- x86_64-unknown-linux-gnu
# - x86_64-unknown-linux-musl

0 comments on commit 23144fe

Please sign in to comment.