Merge pull request #8 from G-Core/fix/fix_pipeline #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Delivery | |
on: | |
push: | |
branches: | |
- 'main' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
target: wasm32-wasi | |
components: rustfmt, clippy | |
- name: Release build | |
run: cargo build --release | |
- name: Upload target binary | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cli-${{ matrix.os }} | |
path: target/release/cli |