Merge pull request #162 from fiatjaf/gh-action

github action to build every commit
This commit is contained in:
Michael Dilger 2023-01-25 13:51:04 +13:00 committed by GitHub
commit 1906312a17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

38
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,38 @@
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: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- 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