cleanup pipeline #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '*' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
test: | |
uses: ./.github/workflows/test.yml | |
build: | |
name: Test build | |
runs-on: ${{ matrix.os }} | |
needs: test | |
strategy: | |
matrix: | |
include: | |
- build: linux | |
os: ubuntu-latest | |
target: x86_64-unknown-linux-musl | |
- build: macos | |
os: macos-latest | |
target: x86_64-apple-darwin | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get the release version from the tag | |
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.target }} | |
- name: Build | |
run: | | |
cargo build --release --target ${{ matrix.target }} | |
# publish: | |
# name: Publish | |
# runs-on: ubuntu-latest | |
# needs: | |
# - build | |
# steps: | |
# - name: Checkout sources | |
# uses: actions/checkout@v4 | |
# | |
# - name: Install Rust | |
# uses: dtolnay/rust-toolchain@stable | |
# | |
# - run: cargo publish --token ${CRATES_TOKEN} | |
# env: | |
# CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} |