diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..303bc08 --- /dev/null +++ b/.github/workflows/rust.yml @@ -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