chore: workflows to macos, rust-toolchain file #25
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: Test CI | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Cache Nix store | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Check for flake configurations | |
run: nix flake check --all-systems --show-trace | |
- name: Compile css | |
run: nix develop --command bash -c "tailwindcss -i ./style/input.css -o ./style/output.css" | |
- name: Compile website | |
run: nix develop --command bash -c "trunk build --release" | |
- name: Build via Nix | |
run: nix build |