Test stdlib stable #996
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: Test stdlib stable | |
| env: | |
| STDLIB_VERSION: stable | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test_stdlib: | |
| name: Test stdlib stable | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -ieo pipefail {0} | |
| steps: | |
| - name: Checkout Modo | |
| uses: actions/checkout@v3 | |
| - name: Setup Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: '1.24.x' | |
| - name: Install dependencies | |
| run: go get . | |
| - name: Install pixi CLI | |
| run: | | |
| curl -ssL https://pixi.sh/install.sh | bash | |
| - name: Clone stdlib | |
| run: | | |
| git clone https://github.com/modular/modular.git | |
| cd modular | |
| git checkout ${{env.STDLIB_VERSION}} | |
| - name: Update pixi (temporary fix) | |
| run: | | |
| cd modular/mojo | |
| pixi update | |
| - name: Install mojo and dependencies | |
| run: | | |
| cd modular/mojo | |
| pixi install --locked | |
| pixi run mojo --version | |
| - name: Generate JSON docs | |
| run: | | |
| cd modular/mojo | |
| pixi run mojo doc -o ../../stdlib.json stdlib/stdlib | |
| - name: Create Markdown | |
| run: | | |
| go run . build -o markdown -i stdlib.json --format=mdbook | |
| - name: Archive Markdown artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: markdown-stable | |
| path: markdown |