1
0
Fork 0

Create rust.yml

This commit is contained in:
Florian Richer 2021-07-24 13:46:56 +02:00 committed by GitHub
parent 687ce0f7bb
commit fd69a2feb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

28
.github/workflows/rust.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: cargo test --verbose
build:
runs-on: ubuntu-latest
steps:
- name: Build linux
run: cargo build --release
- name: Build
uses: actions/upload-artifact@v2.2.4
with:
name: "$GITHUB_HEAD_REF-linux"
path: target/release/autoconfig