gossip/.github/workflows/build.yml
Dirk Stolle dddcc64b4a Replace unmaintained actions-rs actions in CI workflows
Basically all of the actions-rs/* actions are unmaintained. See
<https://github.com/actions-rs/toolchain/issues/216> for more
information. Due to their age they generate several warnings in
CI runs.

To get rid of those warnings the `actions-rs/toolchain` is
replaced by the newer `dtolnay/rust-toolchain`.
2023-01-29 15:38:56 +01:00

38 lines
948 B
YAML

name: build every commit
on:
push:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- run: cargo build --release
- if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
with:
path: target/release/gossip.exe
name: gossip.exe
- if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
with:
path: target/release/gossip*
name: gossip_linux
- if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v3
with:
path: target/release/gossip*
name: gossip_macos