Prep for next release! (#191) #19
Workflow file for this run
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: Stable Release | |
permissions: | |
contents: write | |
on: | |
push: | |
tags: | |
- v[0-9]+.* | |
jobs: | |
upload-release: | |
strategy: | |
matrix: | |
info: | |
- os: "macOS-latest" | |
target: "x86_64-apple-darwin" | |
- os: "macOS-latest" | |
target: "aarch64-apple-darwin" | |
- os: "windows-latest" | |
target: "x86_64-pc-windows-msvc" | |
- os: "ubuntu-latest" | |
target: "x86_64-unknown-linux-gnu" | |
runs-on: ${{ matrix.info.os }} | |
steps: | |
- name: Setup NodeJS toolchain | |
uses: actions/setup-node@v4 | |
- name: Install TailwindCSS | |
run: npm install -D tailwindcss | |
- name: Install DaisyUI | |
run: npm install -D daisyui@latest | |
- name: Install TailwindCSS Typography | |
run: npm install -D @tailwindcss/typography | |
- name: Setup Stable Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: wasm32-unknown-unknown, ${{ matrix.info.target }} | |
components: clippy, rustfmt | |
- name: Setup Auditable | |
run: cargo install cargo-auditable | |
- uses: actions/checkout@v4 | |
- uses: taiki-e/install-action@just | |
- uses: jetli/[email protected] | |
with: | |
version: "latest" | |
# Compile WASM before compiling binary | |
- if: matrix.info.os == 'windows-latest' | |
name: Compile WASM | |
run: just --shell pwsh.exe --shell-arg -c _wasm | |
- if: matrix.info.os != 'windows-latest' | |
name: Compile WASM | |
run: just _wasm | |
- name: Build Artemis | |
run: just _ci_release ${{ matrix.info.target }} | |
- name: Package Artemis | |
shell: bash | |
env: | |
NAME: artemis | |
TARGET: ${{ matrix.info.target }} | |
run: .github/scripts/package.sh | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: "artemis*" | |
name: "${{ vars.GITHUB_REF_NAME }} - Released!" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |