Skip to content

Merge branch 'main' of github.com:burgonet-eu/gateway #10

Merge branch 'main' of github.com:burgonet-eu/gateway

Merge branch 'main' of github.com:burgonet-eu/gateway #10

Workflow file for this run

name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- uses: actions/upload-artifact@v4
with:
path: target/release/burgonet-gw
# - run: cargo test --verbose
release:
name: Release - ${{ matrix.platform.release_for }}
strategy:
matrix:
platform:
- os_name: Linux-x86_64
os: ubuntu-20.04
target: x86_64-unknown-linux-musl
# - os_name: macOS-x86_64
# os: macOS-latest
# target: x86_64-apple-darwin
runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build executable
uses: houseabsolute/actions-rust-cross@v0
with:
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true
- name: Publish artifacts and release
uses: houseabsolute/actions-rust-release@v0
with:
executable-name: burgonet-gw
target: ${{ matrix.platform.target }}
if: matrix.toolchain == 'stable'