Skip to content

Commit

Permalink
update rust workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eye-wave committed Feb 6, 2024
1 parent 5e7a9f9 commit 299d7ec
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,22 @@ jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
architecture: [x64, x86, arm64, armv7]

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

- name: Set up Rust
uses: actions/setup-rust@v1
with:
rust-version: stable

- name: Build
run: cargo build --verbose --release --target ${{ matrix.os }}-${{ matrix.architecture }}

- name: Run tests
run: cargo test --verbose --target ${{ matrix.os }}-${{ matrix.architecture }}

- uses: actions/checkout@v3
- uses: ncipollo/release-action@v1
with:
artifacts: "release.tar.gz,foo/*.txt"
bodyFile: "body.md"

0 comments on commit 299d7ec

Please sign in to comment.