-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add (daily) CI tests on stable and nightly (#26)
- Loading branch information
Showing
4 changed files
with
122 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Test stdlib nightly | ||
|
||
env: | ||
STDLIB_VERSION: nightly | ||
|
||
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 | ||
- 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 ./cmd/modo markdown -i stdlib.json --mdbook | ||
- name: Archive Markdown artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: markdown-nightly | ||
path: markdown |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Test stdlib stable | ||
|
||
env: | ||
STDLIB_VERSION: max/v24.6.0 | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
test_stdlib: | ||
name: Test stdlib stable | ||
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 | ||
- 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 ./cmd/modo markdown -i stdlib.json --mdbook | ||
- name: Archive Markdown artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: markdown-stable | ||
path: markdown |
This file contains 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