Skip to content

Commit

Permalink
ci: add workflow (take one)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Oct 1, 2024
1 parent 4d49cb9 commit 3582632
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: Blobfolio
61 changes: 61 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build

on:
push:
branches: []
pull_request:
branches: []

defaults:
run:
shell: bash

env:
CARGO_TERM_COLOR: always

jobs:
all:
name: All

strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-apple-darwin
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest

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

env:
RUSTFLAGS: "-D warnings"

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
components: clippy

- name: Info
run: |
rustup --version
cargo --version
cargo clippy --version
- name: Build
run: |
cargo build --bin pxsum --target ${{ matrix.target }}
cargo build --bin pxsum --release --target ${{ matrix.target }}
- name: Clippy
run: |
cargo clippy --release --target ${{ matrix.target }}
- name: Test
run: |
cargo test --target ${{ matrix.target }}
cargo test --release --target ${{ matrix.target }}

0 comments on commit 3582632

Please sign in to comment.