Skip to content

Fix compilation error on non-x86 architectures #54

Fix compilation error on non-x86 architectures

Fix compilation error on non-x86 architectures #54

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v16
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: nix build
run: nix develop --command -- pre-commit run --all-files
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v16
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: nix build
run: nix build -L
- name: nix flake check
run: nix flake check -L
rust-build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
rust:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: build
uses: actions-rs/cargo@v1
with:
command: build
- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: test
uses: actions-rs/cargo@v1
with:
command: test