-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (51 loc) · 1.36 KB
/
test-nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Test stdlib nightly
env:
STDLIB_VERSION: main
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
pull_request:
jobs:
test_stdlib:
name: Test stdlib nightly
runs-on: ubuntu-latest
steps:
- name: Checkout Modo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.23.x'
- name: Install dependencies
run: go get .
- name: Install magic CLI
run: |
curl -ssL https://magic.modular.com | bash
source /home/runner/.bash_profile
- name: Clone stdlib
run: |
git clone https://github.com/modularml/mojo.git
cd mojo
git checkout ${{env.STDLIB_VERSION}}
- name: Install mojo and dependencies
run: |
source /home/runner/.bash_profile
cd mojo
magic install --locked
magic run mojo --version
- name: Generate JSON docs
run: |
source /home/runner/.bash_profile
cd mojo
magic run mojo doc -o ../stdlib.json stdlib/src
- 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-nightly
path: markdown