@@ -33,49 +33,45 @@ concurrency:
3333 cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
3434
3535jobs :
36- tutorial-cuda :
37- if : ${{ !contains(github.event.head_commit.message, '[skip docs]') }}
38- runs-on : ubuntu-latest
39- steps :
40- - name : Trigger CUDA Tutorial Build
41- id : buildkite-build
42- uses : buildkite/trigger-pipeline-action@v2.4.1
43- with :
44- buildkite_api_access_token : ${{ secrets.BUILDKITE_TOKEN }}
45- pipeline : " julialang/lux-dot-jl"
46- commit : ${{ github.event.pull_request.head.sha }}
47- branch : ${{ github.event.pull_request.head.ref }}
48- message : |
49- Triggered from PR #${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }}
50- send_pull_request : true
51- pull_request_base_branch : ${{ github.event.pull_request.base.ref }}
52- build_env_vars : >-
53- {
54- "LUX_CUDA_TUTORIALS": "1",
55- "GITHUB_PR_NUMBER": "${{ github.event.pull_request.number }}"
56- }
36+ # tutorial-cuda:
37+ # if: ${{ !contains(github.event.head_commit.message, '[skip docs]') }}
38+ # runs-on: ubuntu-latest
39+ # steps:
40+ # - name: Trigger CUDA Tutorial Build
41+ # id: buildkite-build
42+ # uses: buildkite/trigger-pipeline-action@v2.4.1
43+ # with:
44+ # buildkite_api_access_token: ${{ secrets.BUILDKITE_TOKEN }}
45+ # pipeline: "julialang/lux-dot-jl"
46+ # commit: ${{ github.event.pull_request.head.sha }}
47+ # branch: ${{ github.event.pull_request.head.ref }}
48+ # message: |
49+ # Triggered from PR #${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }}
50+ # send_pull_request: true
51+ # pull_request_base_branch: ${{ github.event.pull_request.base.ref }}
52+ # build_env_vars: >-
53+ # {
54+ # "LUX_CUDA_TUTORIALS": "1",
55+ # "GITHUB_PR_NUMBER": "${{ github.event.pull_request.number }}"
56+ # }
5757
58- - name : Download CUDA Tutorial Artifacts
59- uses : EnricoMi/download-buildkite-artifact-action@v1
60- with :
61- buildkite_token : ${{ secrets.BUILDKITE_TOKEN }}
62- buildkite_build_url : ${{ steps.buildkite-build.outputs.url }}
63- ignore_build_states : blocked,canceled,skipped,not_run
64- ignore_job_states : timed_out,failed
65- output_path : artifacts
66- poll_interval : 30
58+ # - name: Download CUDA Tutorial Artifacts
59+ # uses: EnricoMi/download-buildkite-artifact-action@v1
60+ # with:
61+ # buildkite_token: ${{ secrets.BUILDKITE_TOKEN }}
62+ # buildkite_build_url: ${{ steps.buildkite-build.outputs.url }}
63+ # ignore_build_states: blocked,canceled,skipped,not_run
64+ # ignore_job_states: timed_out,failed
65+ # output_path: artifacts
66+ # poll_interval: 30
6767
68- - name : Print CUDA Tutorial Artifacts
69- run : |
70- echo "CUDA tutorial artifacts:"
71- ls -lah artifacts
72-
73- - name : Print Folder Tree
74- uses : jaywcjlove/github-action-folder-tree@main
75- with :
76- exclude : " node_modules|dist|.git|.husky"
77- path : ./artifacts
78- depth : 4
68+ # - name: Upload Tutorial Artifacts
69+ # uses: actions/upload-artifact@v5
70+ # with:
71+ # name: "tutorial-cuda"
72+ # path: artifacts/**/*
73+ # retention-days: 90
74+ # if-no-files-found: error
7975
8076 tutorial-cpu :
8177 if : ${{ !contains(github.event.head_commit.message, '[skip docs]') }}
@@ -120,59 +116,51 @@ jobs:
120116 retention-days : 90
121117 if-no-files-found : error
122118
123- # documentation:
124- # if: ${{ !contains(github.event.head_commit.message, '[skip docs]') }}
125- # runs-on: ubuntu-latest
126- # needs: [tutorial-cpu]
127- # steps:
128- # - uses: actions/checkout@v6
129- # - name: Collect Workflow Telemetry
130- # uses: catchpoint/workflow-telemetry-action@v2
131- # with:
132- # comment_on_pr: false
133- # job_summary: true
134- # - uses: julia-actions/setup-julia@v2
135- # with:
136- # version: "1.11"
137- # - uses: julia-actions/cache@v2
138- # with:
139- # cache-name: julia-cache;workflow=documentation-${{ github.event_name }}-${{ github.event.repository.default_branch }}-${{ github.sha }}
140- # # Download CPU tutorial artifacts from all matrix groups
141- # - name: Download CPU Tutorial Artifacts (group 0)
142- # uses: actions/download-artifact@v3
143- # with:
144- # name: tutorial-cpu-0
145- # path: tutorial_artifacts/cpu/0
146- # - name: Download CPU Tutorial Artifacts (group 1)
147- # uses: actions/download-artifact@v3
148- # with:
149- # name: tutorial-cpu-1
150- # path: tutorial_artifacts/cpu/1
151- # - name: Download CPU Tutorial Artifacts (group 2)
152- # uses: actions/download-artifact@v3
153- # with:
154- # name: tutorial-cpu-2
155- # path: tutorial_artifacts/cpu/2
156- # - name: Download CPU Tutorial Artifacts (group 3)
157- # uses: actions/download-artifact@v3
158- # with:
159- # name: tutorial-cpu-3
160- # path: tutorial_artifacts/cpu/3
161- # # Placeholder: Download CUDA artifacts produced by external Buildkite pipeline
162- # - name: Download CUDA Tutorial Artifacts (Buildkite)
163- # run: |
164- # echo "(Placeholder) CUDA artifact download step requires Buildkite API token."
165- # echo "Please add a secret or variable and replace this placeholder."
166- # # Build documentation (final build, no draft flag)
167- # - name: Build Documentation
168- # run: julia --color=yes --project=docs --threads=auto docs/make.jl
169- # env:
170- # JULIA_DEBUG: "Documenter"
171- # DATADEPS_ALWAYS_ACCEPT: true
172- # JULIA_PKG_SERVER: ""
119+ documentation :
120+ if : ${{ !contains(github.event.head_commit.message, '[skip docs]') }}
121+ runs-on : ubuntu-latest
122+ # needs: [tutorial-cpu, tutorial-cuda]
123+ needs : [tutorial-cpu]
124+ steps :
125+ - uses : actions/checkout@v6
126+ - name : Collect Workflow Telemetry
127+ uses : catchpoint/workflow-telemetry-action@v2
128+ with :
129+ comment_on_pr : false
130+ job_summary : true
131+ - uses : julia-actions/setup-julia@v2
132+ with :
133+ version : " 1.11"
134+ - uses : julia-actions/cache@v2
135+ with :
136+ cache-name : julia-cache;workflow=documentation-${{ github.event_name }}-${{ github.event.repository.default_branch }}-${{ github.sha }}
137+
138+ # Download the artifacts from the tutorials
139+ - name : Download Tutorial Artifacts
140+ uses : actions/download-artifact@v5
141+ with :
142+ pattern : " tutorial-*"
143+ path : tutorial_artifacts
144+ merge-multiple : true
145+
146+ - name : Print Folder Tree # FIXME: remove before merging
147+ uses : jaywcjlove/github-action-folder-tree@main
148+ with :
149+ exclude : " node_modules|dist|.git|.husky"
150+ path : ./
151+ depth : 8
152+
153+ - name : Move Documentation Artifacts
154+ run : |
155+ cp -r tutorial_artifacts/cpu/* ./
156+ cp -r tutorial_artifacts/cuda/* ./
157+
158+ - uses : julia-actions/julia-buildpkg@v1
159+ - uses : julia-actions/julia-docdeploy@v1
160+ env :
161+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
173162
174163env :
175164 LUX_DOCS_DRAFT_BUILD : " true" # FIXME: remove before merging
176165 DATADEPS_ALWAYS_ACCEPT : true
177- JULIA_PKG_SERVER : " "
178166 GKSwstype : " 100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988
0 commit comments