This commit is contained in:
John Goerzen 2020-09-25 18:40:33 -05:00
parent f977267300
commit 5d0971ebc0
2 changed files with 5 additions and 23 deletions

View File

@ -4,6 +4,7 @@ name: build
on: on:
push: push:
branches: [ master ] branches: [ master ]
tags: '*'
pull_request: pull_request:
branches: [ master ] branches: [ master ]
@ -16,7 +17,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, ubuntu-16.04] os: [ubuntu-18.04]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -24,11 +25,12 @@ jobs:
run: sudo apt-get install libudev-dev run: sudo apt-get install libudev-dev
- name: Build for ${{ matrix.os }} - name: Build for ${{ matrix.os }}
run: cargo build --verbose --release run: cargo build --verbose --release
# - name: Run tests - name: Run tests for ${{ matrix.os }}
# run: cargo test --verbose run: cargo test --verbose
- name: Create Release for ${{ matrix.os }} - name: Create Release for ${{ matrix.os }}
id: create_release id: create_release
uses: actions/create-release@v1 uses: actions/create-release@v1
continue-on-error: true
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:

View File

@ -1,20 +0,0 @@
name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: RUST_BACKTRACE=full cargo test --verbose