From 77fb028c069febd0b46778f1e9b1369eec1ec8dd Mon Sep 17 00:00:00 2001 From: transistor Date: Sun, 30 Apr 2023 22:39:05 -0700 Subject: [PATCH] Added pixels to github pages action --- .github/workflows/deploy-docs.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index ba0d1f4..3b635a5 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -18,12 +18,27 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable + target: wasm32-unknown-unknown - name: Install dependencies - run: sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev + run: | + sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev + cargo install just + + - name: Make build directory + run: mkdir build + + - name: Build Pixels frontend + run: | + cd emulator/frontends/pixels + just build moa-genesis + cp -R dist ../../../build - name: Build docs - run: cargo doc --document-private-items --workspace + run: | + cargo doc --document-private-items --workspace + mkdir build/doc + cp -R target/doc build/doc - name: Upload artifact uses: actions/upload-pages-artifact@v1