Skip to content

Commit

Permalink
Merge pull request #2 from mightyiam/ci
Browse files Browse the repository at this point in the history
build: ci
  • Loading branch information
mightyiam authored Sep 8, 2023
2 parents 8bc09ed + 0fa0f82 commit 3d609ca
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
on:
- push
- pull_request

jobs:
build:
strategy:
matrix:
target:
- aarch64-unknown-linux-gnu
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
platform: [ubuntu-latest]
include:
- target: x86_64-apple-darwin
platform: macos-latest
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: cache
uses: FrancisRussell/[email protected]
with:
command: cache
- name: toolchain
uses: FrancisRussell/[email protected]
with:
command: install-rustup
toolchain: stable
target: ${{ matrix.target }}
- name: build
uses: FrancisRussell/[email protected]
with:
command: cargo build
use-cross: true
args: --target=${{ matrix.target }}

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: cache
uses: FrancisRussell/[email protected]
with:
command: cache
- name: toolchain
uses: FrancisRussell/[email protected]
with:
command: install-rustup
toolchain: stable
target: ${{ matrix.target }}
- name: install Nix
uses: cachix/install-nix-action@v23
- name: test
uses: FrancisRussell/[email protected]
with:
command: cargo test


clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: cache
uses: FrancisRussell/[email protected]
with:
command: cache
- name: toolchain
uses: FrancisRussell/[email protected]
with:
command: install-rustup
toolchain: stable
components: clippy
- name: test
uses: FrancisRussell/[email protected]
with:
command: cargo clippy

0 comments on commit 3d609ca

Please sign in to comment.