-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1.01 KB
/
frontend_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
on: [pull_request]
name: Frontend Build Check
jobs:
frontend_build_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- name: Generate Rust Undeads Json
run: cargo run && cp ./undeads.json ../frontend/undeads_rust.json
working-directory: ./runtime-rs
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "13.0"
- name: Install Libs
run: sudo apt install libncurses5
- name: Generate C++ Undeads Json
run: make && ./build/runtime && cp ./undeads.json ../frontend/undeads_cpp.json
working-directory: ./runtime-cc
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: bahmutov/npm-install@v1
with:
useLockFile: true
working-directory: ./frontend
- name: Build Check
run: yarn build
working-directory: ./frontend