Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build compiler playground as part of GitHub CI (take 2) #4470

Closed
wants to merge 8 commits into from
31 changes: 31 additions & 0 deletions .github/workflows/docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,48 @@ on:
- main

jobs:
build-compiler-explorer:
name: Build Compiler Explorer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.73.0 # We hit an LLVM error building Wasm on 1.72
override: true
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: "Build Compiler Playground Wasm NPM package"
run: RUST_LOG=debug wasm-pack build --target web
working-directory: ./compiler/crates/relay-compiler-playground
- uses: actions/upload-artifact@v3
with:
name: compiler-playground-package
path: compiler/crates/relay-compiler-playground/pkg/

build-and-deploy:
runs-on: ubuntu-latest
needs: [build-compiler-explorer]
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false

- name: Download Compiler Explorer
uses: actions/download-artifact@v2
with:
name: compiler-playground-package
path: tmp/compiler-playground-package

- name: Link Compiler Explorer
run: yarn link
working-directory: tmp/compiler-playground-package

- name: Install and Build
run: |
yarn
yarn link relay-compiler-playground
yarn build
working-directory: website/

Expand Down
Loading