Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRega committed Nov 1, 2022
2 parents 13be120 + 93922ee commit d69bb2f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# .github/workflows/release.yml

on:
release:
types: [created]

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz
- target: x86_64-apple-darwin
archive: zip
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}

17 changes: 13 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: Rust

on:
push:
branches: [ "main" ]
Expand All @@ -11,12 +9,23 @@ env:

jobs:
build:
strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-latest
- os: windows-latest
- os: macos-latest

runs-on: ubuntu-latest

name: rust-ci ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run check
run: cargo check --verbose
- name: Run clippy
run: cargo clippy --verbose

0 comments on commit d69bb2f

Please sign in to comment.