Files
elo/.github/workflows/github-actions-demo.yml
Matthew Kaminski 8ad6967b7a
Some checks failed
Build Crate / build (push) Failing after 1m26s
Remove automatic deploy
Too annoying to host now
2024-08-18 15:34:42 -04:00

47 lines
1.2 KiB
YAML

# .gitea/workflows/build.yaml
name: Build Crate
run-name: Build
on: [push]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
# TODO -> Change to actions/checkout@v3 once this is resolved https://github.com/actions/checkout/issues/1370
uses: https://gitea.com/ScMi1/checkout@v1
- name: Get rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy
override: true
- name: Add wasm32 to cargo
run: rustup target add wasm32-unknown-unknown
- name: Cache rust
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- name: Install perseus
uses: baptiste0928/cargo-install@v2
with:
crate: perseus-cli
- name: Install npm
uses: actions/setup-node@v3
with:
node-version: latest
- name: Install sass
run: npm install -g sass
- name: Install tailwindcss via npm
run: npm install -D tailwindcss
- name: Compile css
run: npm run build
- name: Build the project
run: perseus deploy