Skip to content

Commit 700f764

Browse files
committed
πŸ€žπŸ»πŸ™πŸ» switch to devbox build for CI
1 parent 7a970af commit 700f764

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed

β€Ž.github/workflows/pages.yml

+6-22
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,13 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v4
24-
- name: Set up Homebrew
25-
id: set-up-homebrew
26-
uses: Homebrew/actions/setup-homebrew@master
27-
- name: Install Dependencies
28-
run: |
29-
brew install zig wabt emscripten go tinygo-org/tools/tinygo
30-
- name: Setup Rust
31-
uses: dtolnay/rust-toolchain@master
24+
- name: Install Devbox + Dependencies
25+
uses: jetify-com/[email protected]
3226
with:
33-
toolchain: 'stable'
34-
targets: 'wasm32-unknown-unknown'
35-
- name: Build Validator
36-
run: |
37-
cd validator
38-
make install
39-
- name: Build Modules
40-
run: |
41-
scripts/_build_wasms.sh
42-
- name: Build Frontend
27+
enable-cache: true
28+
- name: Build Site
4329
run: |
44-
cd frontend
45-
npm install
46-
WASMBOTS_BASE="/wasmbots" npm run build
30+
devbox run build
4731
- name: Upload site artifact
4832
uses: actions/upload-pages-artifact@v3
4933
with:
@@ -54,8 +38,8 @@ jobs:
5438
name: github-pages
5539
url: ${{ steps.deployment.outputs.page_url }}
5640
needs: build
57-
runs-on: ubuntu-latest
5841
name: Deploy
42+
runs-on: ubuntu-latest
5943
steps:
6044
- name: Deploy to GitHub Pages
6145
id: deployment

0 commit comments

Comments
Β (0)