released v0.4.0 #37
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: CI Pipeline | |
# Steps: | |
# 1. Run ci.yml for every push to the main branch | |
# 2. Run tag.yml for every completed run of the CI Pipeline | |
# 3. Run cd.yml for every tag-creation-success event | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
if: github.repository == 'jaywcjlove/sgo-rs' | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.rust == 'nightly' }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
rust: [1.74.0, stable, beta, nightly] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Save commit message to environment variable | |
run: echo "COMMIT_MESSAGE=${{ github.event.head_commit.message }}" >> $GITHUB_ENV | |
- name: Run dtolnay/rust-toolchain${{contains(matrix.rust, ' ') && ' for ' || '@'}}${{matrix.rust}} | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Build | |
run: cargo build --release |