mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 08:21:47 +00:00
dddcc64b4a
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`.
38 lines
948 B
YAML
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
|