mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
Create main.yml
This commit is contained in:
parent
194ceb0fd0
commit
792f5ac8a3
1 changed files with 46 additions and 0 deletions
46
.github/workflows/main.yml
vendored
Normal file
46
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
name: Scram My Shit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '18'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Setup Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Install wasm32 toolchain
|
||||
run: rustup target add wasm32-unknown-unknown
|
||||
|
||||
- name: Install wasm-bindgen-cli
|
||||
run: cargo install wasm-bindgen-cli
|
||||
|
||||
- name: Install wasm-opt
|
||||
run: sudo apt-get update && sudo apt-get install -y binaryen
|
||||
|
||||
- name: Build Rewriter
|
||||
run: npm run rewriter:build
|
||||
|
||||
|
||||
- name: Run npm build
|
||||
run: npm run build
|
Loading…
Add table
Add a link
Reference in a new issue