default value is undefined (since it was just made) #19
Workflow file for this run
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: build-on-push | |
on: [push] | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
build-mode: [debug, release] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: Rustup toolchain install | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: nightly | |
components: rustfmt, clippy | |
- name: Rust cache | |
uses: Swatinem/[email protected] | |
- name: Build debug | |
if: matrix.build-mode == 'debug' | |
run: cargo build --all-features | |
- name: Build release | |
if: matrix.build-mode == 'release' | |
run: cargo build --release --all-features | |
- name: Get built artifacts | |
uses: actions/[email protected] | |
with: | |
name: noodles-windows-${{ matrix.build-mode }} | |
path: target/${{ matrix.build-mode }}/noodles.exe | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
build-mode: [debug, release] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: Install Nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Rust cache | |
uses: Swatinem/[email protected] | |
- name: Build debug | |
if: matrix.build-mode == 'debug' | |
run: nix develop -c -- cargo build --all-features | |
- name: Build release | |
if: matrix.build-mode == 'release' | |
run: nix develop -c -- cargo build --release --all-features | |
- name: Get built artifacts | |
uses: actions/[email protected] | |
with: | |
name: noodles-unix-${{ matrix.build-mode }} | |
path: target/${{ matrix.build-mode }}/noodles |