Skip to content

Fixed just version

Fixed just version #9

Workflow file for this run

name: deploy-docs
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
build-docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Select rust version
run: |
rustup toolchain install 1.70 --profile minimal --no-self-update
rustup default 1.70
rustup target add wasm32-unknown-unknown
- uses: jetli/[email protected]
with:
# NOTE version here must match the emulator/frontends/pixels/Cargo.lock version
version: 0.2.92
- name: Install dependencies
run: |
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev
# NOTE version here is pinned because it must be compilable with MSRV
cargo install just --version 1.22.0
- 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
cp -R target/doc build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1