Skip to content

Commit

Permalink
Update workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsully committed Jul 18, 2023
1 parent 11c292e commit 65351e8
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 102 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ jobs:
arch: amd64
host: ubuntu-latest
os: linux
# - name: Linux aarch64
# target: aarch64-unknown-linux-gnu
# arch: arm64
# host: ubuntu-latest
# os: linux

runs-on: ${{ matrix.host }}

Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:

env:
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings"
RUST_BACKTRACE: 1

jobs:
build:
strategy:
matrix:
include:
- name: Apple Silicon
target: aarch64-apple-darwin
arch: arm64
host: macos-latest
os: darwin
- name: Apple x86_64
target: x86_64-apple-darwin
arch: amd64
host: macos-latest
os: darwin
- name: Linux x86_64
target: x86_64-unknown-linux-gnu
arch: amd64
host: ubuntu-latest
os: linux

runs-on: ${{ matrix.host }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
targets: ${{ matrix.target }}
toolchain: stable

- uses: swatinem/rust-cache@v2
- uses: extractions/setup-just@v1

- name: Versions
run: |
git version
cargo version
- name: Format Check
run: just format-check

- name: Clippy
run: just lint

- name: Build & Test
id: build
run: |
cargo build --release --target ${{ matrix.target }}
cargo test
97 changes: 0 additions & 97 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 65351e8

Please sign in to comment.