upub/.github/workflows/build.yml

21 lines
622 B
YAML
Raw Normal View History

on: [push]
jobs:
build:
2025-01-24 00:48:22 +01:00
runs-on: ubuntu-latest
steps:
2025-01-24 01:37:25 +01:00
- run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-install.sh
chmod +x rustup-install.sh
./rustup-install.sh -y
cp $HOME/.cargo/bin/* /usr/bin/ # UGHHH
2025-01-24 00:53:35 +01:00
- run: rustup target add wasm32-unknown-unknown
- run: cargo install --locked trunk
- uses: actions/checkout@v4
2025-01-24 00:53:35 +01:00
- run: trunk build --release
working-directory: web/
- run: cargo build --release --features=web
- uses: actions/upload-artifact@v4
with:
path: target/release/upub