Skip to content

Commit

Permalink
Create rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rublag authored Dec 29, 2023
1 parent 2a50dbb commit 22494de
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build-linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --release --target x86_64-unknown-linux-gnu
- name: Run tests
run: cargo test --verbose --release --target x86_64-unknown-linux-gnu
- name: upload
uses: actions/[email protected]
with:
name: cljindent-x86_64-unknown-linux-gnu
path: target/x86_64-unknown-linux-gnu/release/cljindent

build-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --release --target x86_64-pc-windows-msvc
- name: Run tests
run: cargo test --verbose --release --target x86_64-pc-windows-msvc
- name: upload
uses: actions/[email protected]
with:
name: cljindent-x86_64-pc-windows-msvc
path: target/x86_64-pc-windows-msvc/release/cljindent

build-macos-x86:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --release --target x86_64-apple-darwin
- name: Run tests
run: cargo test --verbose --release --target x86_64-apple-darwin
- name: upload
uses: actions/[email protected]
with:
name: cljindent-x86_64-apple-darwin
path: target/x86_64-apple-darwin/release/cljindent

build-macos-aarch64:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --release --target aarch64-apple-darwin
- name: Run tests
run: cargo test --verbose --release --target aarch64-apple-darwin
- name: upload
uses: actions/[email protected]
with:
name: cljindent-aarch64-apple-darwin
path: target/aarch64-apple-darwin/release/cljindent

0 comments on commit 22494de

Please sign in to comment.