This repository was archived by the owner on Jun 17, 2026. It is now read-only.
chore: bump install-nix-action to v31.10.6 and channel to nixos-25.11
#2524
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "build" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| permissions: | |
| contents: write | |
| # Remember to update me in package-set.yml as well | |
| env: | |
| vessel_version: "v0.7.0" | |
| moc_version: "0.16.2" | |
| jobs: | |
| tests: | |
| if: github.ref != 'refs/heads/next-moc' && github.base_ref != 'refs/heads/next-moc' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: 18 | |
| - run: npm ci | |
| - name: "initial checks" | |
| run: npm run validate | |
| - name: Check if Git tag exists | |
| run: echo "name=HEAD_TAG::$(git tag --points-at HEAD)" >> $GITHUB_ENV | |
| - uses: cachix/install-nix-action@8aa03977d8d733052d78f4e008a241fd1dbf36b3 # v31.10.6 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-25.11 | |
| - name: "install dependencies" | |
| run: | | |
| nix-env --install wasmtime --file '<nixpkgs>' | |
| nix-env --install graphviz --file '<nixpkgs>' | |
| - name: "install Motoko binaries" | |
| run: | | |
| wget https://github.com/dfinity/motoko/releases/download/${{ env.moc_version }}/motoko-Linux-x86_64-${{ env.moc_version }}.tar.gz | |
| mkdir -p /home/runner/bin | |
| tar -xzf motoko-Linux-x86_64-${{ env.moc_version }}.tar.gz -C /home/runner/bin | |
| echo "/home/runner/bin" >> $GITHUB_PATH | |
| - name: "install vessel" | |
| run: | | |
| wget --output-document /home/runner/bin/vessel https://github.com/kritzcreek/vessel/releases/download/${{ env.vessel_version }}/vessel-linux64 | |
| chmod +x /home/runner/bin/vessel | |
| - name: "test (interpreter mode)" | |
| run: DFX_MOC_PATH=moc npm test | |
| - name: "test (wasi mode)" | |
| run: DFX_MOC_PATH=moc npm test -- --mode wasi | |
| - name: "graph dependencies" | |
| run: python3 doc/module_graph.py | dot -Tsvg > doc/module_graph.svg && file doc/module_graph.svg | |
| - name: "docs" | |
| if: github.ref != 'refs/heads/next-moc' && github.base_ref != 'refs/heads/next-moc' | |
| run: | | |
| pushd doc | |
| mo-doc --source ../src --output modules/base-libraries/pages/ --format adoc | |
| popd | |
| python3 doc/module_nav.py > doc/modules/base-libraries/lib-nav.adoc | |
| - name: Upload docs | |
| uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0 | |
| if: github.ref == 'refs/heads/master' | |
| with: | |
| branch: doc-pages | |
| folder: doc/ |