Skip to content

fix??

fix?? #8

Workflow file for this run

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.exe
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: install compiler
run: rustup target add aarch64-apple-darwin
- name: Build
run: cargo build --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
publish:
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- build-linux
- build-windows
- build-macos-x86
- build-macos-aarch64
steps:
- name: download artifacts
uses: actions/download-artifact@v4
with:
path: dist
- name: create release
uses: softprops/action-gh-release@v1
with:
prerelease: true
tag_name: preview
name: Preview
files: |
dist/*