Skip to content

Add files via upload #17

Add files via upload

Add files via upload #17

Workflow file for this run

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: Clippy checks
if: matrix.build-mode == 'debug'
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Rustfmt checks
if: matrix.build-mode == 'debug'
run: cargo fmt --all -- --check
- name: Cargo test
if: matrix.build-mode == 'debug'
run: cargo test --all-targets --all-features
- name: Build debug
if: matrix.build-mode == 'debug'
run: cargo build
- name: Build release
if: matrix.build-mode == 'release'
run: cargo build --release
- name: Get built artifacts
uses: actions/[email protected]
with:
name: noodles-windows-${{ matrix.build-mode }}
path: target/${{ matrix.build-mode }}/noodles*
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@v26
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
- name: Build release
if: matrix.build-mode == 'release'
run: nix develop -c -- cargo build --release
- name: Get built artifacts
uses: actions/[email protected]
with:
name: noodles-unix-${{ matrix.build-mode }}
path: target/${{ matrix.build-mode }}/noodles*