2024-07-21 20:49:16 +00:00
|
|
|
name: Rust checks
|
2024-05-11 20:07:04 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-x86_64:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Set up Node.js
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '18'
|
|
|
|
|
|
|
|
- name: Install dependencies and build webui
|
|
|
|
run: |
|
|
|
|
cd webui
|
|
|
|
npm install
|
|
|
|
npm run build
|
2024-07-21 20:46:49 +00:00
|
|
|
rustup target add x86_64-pc-windows-msvc
|
2024-05-11 20:07:04 +00:00
|
|
|
|
|
|
|
- name: Set up Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: Build Rust project for x86_64
|
|
|
|
run: cargo build --release --target x86_64-unknown-linux-gnu
|