nod-rs/.github/workflows/build.yaml

30 lines
767 B
YAML
Raw Normal View History

2021-08-23 13:48:35 +00:00
name: build
on: [ push, pull_request ]
jobs:
default:
name: Default
strategy:
matrix:
platform: [ ubuntu-latest, macos-latest, windows-latest ]
toolchain: [ stable, 1.51.0, nightly ]
2021-08-23 14:13:40 +00:00
fail-fast: false
2021-08-23 13:48:35 +00:00
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- uses: actions/upload-artifact@v2
with:
2021-08-23 14:13:40 +00:00
name: ${{ matrix.platform }}-${{ matrix.toolchain }}
2021-08-23 13:48:35 +00:00
path: |
target/release/nodtool
target/release/nodtool.exe