mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-03-11 17:49:25 -05:00
Upgrade GitHub Actions for Node 24 compatibility
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
This commit is contained in:
14
.github/workflows/all-contributors-add.yml
vendored
14
.github/workflows/all-contributors-add.yml
vendored
@@ -63,7 +63,7 @@ jobs:
|
||||
# =====================================================================
|
||||
- name: Extract trigger line and detect project
|
||||
id: extract
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
env:
|
||||
PROJECTS: ${{ env.PROJECTS }}
|
||||
PROJECT_ALIASES: ${{ env.PROJECT_ALIASES }}
|
||||
@@ -233,7 +233,7 @@ jobs:
|
||||
- name: Parse LLM response and validate
|
||||
if: steps.extract.outputs.should_run == 'true'
|
||||
id: parse
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
env:
|
||||
LLM_RESPONSE: ${{ steps.llm.outputs.response }}
|
||||
TRIGGER_LINE: ${{ steps.extract.outputs.trigger_line }}
|
||||
@@ -325,21 +325,21 @@ jobs:
|
||||
# =====================================================================
|
||||
- name: Checkout repository
|
||||
if: steps.extract.outputs.should_run == 'true' && steps.parse.outputs.success == 'true'
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ env.TARGET_BRANCH }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Python
|
||||
if: steps.extract.outputs.should_run == 'true' && steps.parse.outputs.success == 'true'
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Get user info from GitHub
|
||||
if: steps.extract.outputs.should_run == 'true' && steps.parse.outputs.success == 'true'
|
||||
id: userinfo
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
script: |
|
||||
const username = '${{ steps.parse.outputs.username }}';
|
||||
@@ -467,7 +467,7 @@ jobs:
|
||||
# =====================================================================
|
||||
- name: React to comment
|
||||
if: steps.extract.outputs.should_run == 'true' && steps.parse.outputs.success == 'true'
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
script: |
|
||||
// Add reaction to the comment
|
||||
@@ -520,7 +520,7 @@ jobs:
|
||||
# =====================================================================
|
||||
- name: Handle parsing failure
|
||||
if: steps.extract.outputs.should_run == 'true' && steps.parse.outputs.success == 'false'
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
env:
|
||||
PROJECTS: ${{ env.PROJECTS }}
|
||||
with:
|
||||
|
||||
6
.github/workflows/auto-label.yml
vendored
6
.github/workflows/auto-label.yml
vendored
@@ -39,7 +39,7 @@ jobs:
|
||||
steps:
|
||||
- name: Get issue/PR details
|
||||
id: get-details
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
script: |
|
||||
// Determine which issue/PR to label
|
||||
@@ -82,7 +82,7 @@ jobs:
|
||||
|
||||
- name: Fetch labels from GitHub
|
||||
id: fetch-labels
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
script: |
|
||||
// Fetch all labels from the repository
|
||||
@@ -179,7 +179,7 @@ jobs:
|
||||
The "other" array should be empty [] or contain label names that apply.
|
||||
|
||||
- name: Parse and apply labels
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
env:
|
||||
LLM_RESPONSE: ${{ steps.llm.outputs.response }}
|
||||
ALL_LABELS_JSON: ${{ steps.fetch-labels.outputs.all_labels_json }}
|
||||
|
||||
14
.github/workflows/book-build-baremetal.yml
vendored
14
.github/workflows/book-build-baremetal.yml
vendored
@@ -238,7 +238,7 @@ jobs:
|
||||
|
||||
- name: 📥 Checkout repository
|
||||
if: matrix.enabled
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
@@ -480,7 +480,7 @@ jobs:
|
||||
# === LINUX: Setup Python (GitHub Action) ===
|
||||
- name: 🐍 Set up Python (Linux)
|
||||
if: matrix.enabled && runner.os == 'Linux'
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.13'
|
||||
|
||||
@@ -505,7 +505,7 @@ jobs:
|
||||
|
||||
- name: 💾 Cache Python packages
|
||||
if: matrix.enabled
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
id: cache-python-packages
|
||||
with:
|
||||
path: |
|
||||
@@ -587,7 +587,7 @@ jobs:
|
||||
# Cache Linux system packages without hardcoded paths
|
||||
- name: 💾 Cache APT packages
|
||||
if: matrix.enabled && runner.os == 'Linux'
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
id: cache-apt
|
||||
with:
|
||||
path: ~/.apt-cache
|
||||
@@ -847,7 +847,7 @@ jobs:
|
||||
# Cache R packages using standard paths
|
||||
- name: 💾 Cache R packages
|
||||
if: matrix.enabled
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
id: cache-r-packages
|
||||
with:
|
||||
path: |
|
||||
@@ -1167,7 +1167,7 @@ jobs:
|
||||
|
||||
- name: 📤 Upload build artifacts
|
||||
if: matrix.enabled
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: ${{ steps.build-declaration.outputs.artifact_name }}
|
||||
path: ${{ steps.build.outputs.output_dir }}
|
||||
@@ -1250,7 +1250,7 @@ jobs:
|
||||
|
||||
- name: 📤 Upload Build Logs (Always)
|
||||
if: matrix.enabled && always() # Upload logs even if build fails
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: build-logs-${{ matrix.os_name }}-${{ matrix.format }}-${{ github.run_id }}
|
||||
path: logs/
|
||||
|
||||
4
.github/workflows/book-build-container.yml
vendored
4
.github/workflows/book-build-container.yml
vendored
@@ -219,7 +219,7 @@ jobs:
|
||||
|
||||
- name: 📥 Checkout repository
|
||||
if: matrix.enabled
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.target }}
|
||||
fetch-depth: 0
|
||||
@@ -420,7 +420,7 @@ jobs:
|
||||
Write-Host "✅ EPUB compression completed."
|
||||
|
||||
- name: 📤 Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
if: matrix.enabled
|
||||
with:
|
||||
name: ${{ matrix.artifact_name }}
|
||||
|
||||
8
.github/workflows/book-preview-dev.yml
vendored
8
.github/workflows/book-preview-dev.yml
vendored
@@ -76,7 +76,7 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 📥 Download HTML Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: ${{ env.ARTIFACT_NAME }}
|
||||
run-id: ${{ steps.run_info.outputs.run_id }}
|
||||
@@ -84,7 +84,7 @@ jobs:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 📥 Download PDF Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
continue-on-error: true
|
||||
with:
|
||||
name: dev-pdf-linux
|
||||
@@ -93,7 +93,7 @@ jobs:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 📥 Download EPUB Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
continue-on-error: true
|
||||
with:
|
||||
name: dev-epub-linux
|
||||
@@ -144,7 +144,7 @@ jobs:
|
||||
echo "::endgroup::"
|
||||
|
||||
- name: ⬇️ Checkout repository (for scripts)
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: ./repo-scripts
|
||||
sparse-checkout: |
|
||||
|
||||
46
.github/workflows/book-publish-live.yml
vendored
46
.github/workflows/book-publish-live.yml
vendored
@@ -157,7 +157,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -309,7 +309,7 @@ jobs:
|
||||
echo "✅ Branch check passed - running from ${{ github.ref_name }}"
|
||||
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -412,7 +412,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -550,7 +550,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -595,7 +595,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -728,7 +728,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -766,7 +766,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -829,7 +829,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -867,19 +867,19 @@ jobs:
|
||||
echo "✅ API contract validated - all artifact names provided"
|
||||
|
||||
- name: 📦 Download HTML Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: ${{ needs.call-production-build.outputs.linux_html_artifact }}
|
||||
path: ./html-temp
|
||||
|
||||
- name: 📦 Download PDF Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: ${{ needs.call-production-build.outputs.linux_pdf_artifact }}
|
||||
path: ./pdf-temp
|
||||
|
||||
- name: 📦 Download EPUB Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: ${{ needs.call-production-build.outputs.linux_epub_artifact }}
|
||||
path: ./epub-temp
|
||||
@@ -1166,7 +1166,7 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 📤 Upload PDF Artifact for GitHub Release
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: pdf-artifact
|
||||
path: Machine-Learning-Systems.pdf
|
||||
@@ -1182,7 +1182,7 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: 📤 Upload EPUB Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: epub-artifact
|
||||
path: Machine-Learning-Systems.epub
|
||||
@@ -1197,12 +1197,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 📄 Download PDF from previous job
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: pdf-artifact
|
||||
path: ./
|
||||
@@ -1455,13 +1455,13 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: 📤 Upload Release Notes Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: release-notes
|
||||
path: release_notes_${{ needs.validate-inputs.outputs.new_version }}.md
|
||||
|
||||
- name: 📤 Upload Git Log Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: git-changes
|
||||
path: |
|
||||
@@ -1478,24 +1478,24 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 📄 Download PDF from previous job
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: pdf-artifact
|
||||
path: ./
|
||||
|
||||
- name: 📚 Download EPUB from previous job
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: epub-artifact
|
||||
path: ./
|
||||
|
||||
- name: 📝 Download release notes
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: release-notes
|
||||
path: ./
|
||||
@@ -1719,7 +1719,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -1819,7 +1819,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
4
.github/workflows/book-validate-dev.yml
vendored
4
.github/workflows/book-validate-dev.yml
vendored
@@ -87,13 +87,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.test_branch || github.ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: 🐍 Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
|
||||
4
.github/workflows/infra-cleanup-caches.yml
vendored
4
.github/workflows/infra-cleanup-caches.yml
vendored
@@ -27,10 +27,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: '📥 Checkout repository'
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: '🐍 Setup Python'
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
|
||||
2
.github/workflows/infra-container-linux.yml
vendored
2
.github/workflows/infra-container-linux.yml
vendored
@@ -155,7 +155,7 @@ jobs:
|
||||
echo "✅ Environment check completed"
|
||||
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: 🧹 Free up disk space
|
||||
run: |
|
||||
|
||||
@@ -118,7 +118,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
# Skip Docker Buildx for Windows containers - use native Docker engine
|
||||
# Buildx doesn't properly support Windows containers on GitHub Actions
|
||||
|
||||
4
.github/workflows/infra-health-check.yml
vendored
4
.github/workflows/infra-health-check.yml
vendored
@@ -101,7 +101,7 @@ jobs:
|
||||
if: |
|
||||
(matrix.platform == 'linux' && inputs.test_linux != false) ||
|
||||
(matrix.platform == 'windows' && inputs.test_windows != false)
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
@@ -766,7 +766,7 @@ jobs:
|
||||
|
||||
- name: 📤 Upload Test Artifacts
|
||||
if: always() && ((matrix.platform == 'linux' && inputs.test_linux != false) || (matrix.platform == 'windows' && inputs.test_windows != false))
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: ${{ matrix.platform }}-container-test-results
|
||||
path: |
|
||||
|
||||
2
.github/workflows/infra-link-check.yml
vendored
2
.github/workflows/infra-link-check.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
||||
broken-count: ${{ steps.link-summary.outputs.broken-count }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: 🔗 Check Links
|
||||
id: lychee
|
||||
|
||||
4
.github/workflows/kits-build-pdfs.yml
vendored
4
.github/workflows/kits-build-pdfs.yml
vendored
@@ -39,7 +39,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.ref || github.ref }}
|
||||
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
mv _build/pdf/Hardware-Kits-compressed.pdf _build/pdf/Hardware-Kits.pdf
|
||||
|
||||
- name: 📤 Upload PDF Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: Kits-PDF
|
||||
path: kits/_build/pdf/Hardware-Kits.pdf
|
||||
|
||||
4
.github/workflows/kits-preview-dev.yml
vendored
4
.github/workflows/kits-preview-dev.yml
vendored
@@ -32,7 +32,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: 🔧 Setup Quarto
|
||||
uses: quarto-dev/quarto-actions/setup@v2
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
touch _build/.nojekyll
|
||||
|
||||
- name: 📥 Download PDF Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
continue-on-error: true
|
||||
with:
|
||||
name: Kits-PDF
|
||||
|
||||
4
.github/workflows/kits-publish-live.yml
vendored
4
.github/workflows/kits-publish-live.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: 🔧 Setup Quarto
|
||||
uses: quarto-dev/quarto-actions/setup@v2
|
||||
@@ -40,7 +40,7 @@ jobs:
|
||||
touch _build/.nojekyll
|
||||
|
||||
- name: 📥 Download PDF Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: Kits-PDF
|
||||
path: kits/_build/assets/downloads/
|
||||
|
||||
2
.github/workflows/labs-preview-dev.yml
vendored
2
.github/workflows/labs-preview-dev.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: 🔧 Setup Quarto
|
||||
uses: quarto-dev/quarto-actions/setup@v2
|
||||
|
||||
2
.github/workflows/labs-publish-live.yml
vendored
2
.github/workflows/labs-publish-live.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: 🔧 Setup Quarto
|
||||
uses: quarto-dev/quarto-actions/setup@v2
|
||||
|
||||
6
.github/workflows/publish-all-live.yml
vendored
6
.github/workflows/publish-all-live.yml
vendored
@@ -86,7 +86,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Quarto
|
||||
uses: quarto-dev/quarto-actions/setup@v2
|
||||
@@ -116,7 +116,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Quarto
|
||||
uses: quarto-dev/quarto-actions/setup@v2
|
||||
@@ -146,7 +146,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Quarto
|
||||
uses: quarto-dev/quarto-actions/setup@v2
|
||||
|
||||
12
.github/workflows/tinytorch-build-pdfs.yml
vendored
12
.github/workflows/tinytorch-build-pdfs.yml
vendored
@@ -37,19 +37,19 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.ref || github.ref }}
|
||||
|
||||
- name: 🐍 Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
cache-dependency-path: 'tinytorch/site/requirements.txt'
|
||||
|
||||
- name: 🟢 Setup Node.js (for Mermaid)
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
@@ -80,7 +80,7 @@ jobs:
|
||||
latexmk_use_xelatex: true
|
||||
|
||||
- name: 📤 Upload PDF Guide
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: TinyTorch-Guide
|
||||
path: tinytorch/site/_build/latex/tinytorch-course.pdf
|
||||
@@ -92,7 +92,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.ref || github.ref }}
|
||||
|
||||
@@ -104,7 +104,7 @@ jobs:
|
||||
latexmk_use_lualatex: true
|
||||
|
||||
- name: 📤 Upload PDF Paper
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: TinyTorch-Paper
|
||||
path: tinytorch/paper/paper.pdf
|
||||
|
||||
8
.github/workflows/tinytorch-preview-dev.yml
vendored
8
.github/workflows/tinytorch-preview-dev.yml
vendored
@@ -35,10 +35,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: 🐍 Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
@@ -66,14 +66,14 @@ jobs:
|
||||
echo "✅ Build complete"
|
||||
|
||||
- name: 📥 Download PDF Guide
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
continue-on-error: true
|
||||
with:
|
||||
name: TinyTorch-Guide
|
||||
path: ./pdf-artifacts/guide
|
||||
|
||||
- name: 📥 Download PDF Paper
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
continue-on-error: true
|
||||
with:
|
||||
name: TinyTorch-Paper
|
||||
|
||||
16
.github/workflows/tinytorch-publish-live.yml
vendored
16
.github/workflows/tinytorch-publish-live.yml
vendored
@@ -108,7 +108,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -201,7 +201,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout dev branch
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: dev
|
||||
fetch-depth: 0
|
||||
@@ -318,7 +318,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout main
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: main
|
||||
fetch-depth: 0
|
||||
@@ -366,12 +366,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: main # Use freshly synced main
|
||||
|
||||
- name: 🐍 Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
@@ -397,14 +397,14 @@ jobs:
|
||||
touch _build/html/.nojekyll
|
||||
|
||||
- name: 📥 Download PDF Guide
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
continue-on-error: true
|
||||
with:
|
||||
name: TinyTorch-Guide
|
||||
path: ./pdf-artifacts/guide
|
||||
|
||||
- name: 📥 Download PDF Paper
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
continue-on-error: true
|
||||
with:
|
||||
name: TinyTorch-Paper
|
||||
@@ -470,7 +470,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout main
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: main
|
||||
fetch-depth: 0
|
||||
|
||||
18
.github/workflows/tinytorch-update-pdfs.yml
vendored
18
.github/workflows/tinytorch-update-pdfs.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
||||
if: inputs.update_paper
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: main
|
||||
|
||||
@@ -41,7 +41,7 @@ jobs:
|
||||
latexmk_use_lualatex: true
|
||||
|
||||
- name: 📤 Upload PDF Paper
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: TinyTorch-Paper
|
||||
path: tinytorch/paper/paper.pdf
|
||||
@@ -53,19 +53,19 @@ jobs:
|
||||
if: inputs.update_guide
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: main
|
||||
|
||||
- name: 🐍 Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
cache-dependency-path: 'tinytorch/site/requirements.txt'
|
||||
|
||||
- name: 🟢 Setup Node.js (for Mermaid)
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
@@ -96,7 +96,7 @@ jobs:
|
||||
latexmk_use_xelatex: true
|
||||
|
||||
- name: 📤 Upload PDF Guide
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: TinyTorch-Guide
|
||||
path: tinytorch/site/_build/latex/tinytorch-course.pdf
|
||||
@@ -109,21 +109,21 @@ jobs:
|
||||
if: always() && (needs.build-paper.result == 'success' || needs.build-guide.result == 'success')
|
||||
steps:
|
||||
- name: 📥 Checkout gh-pages
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: gh-pages
|
||||
path: gh-pages
|
||||
|
||||
- name: 📥 Download Paper PDF
|
||||
if: needs.build-paper.result == 'success'
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: TinyTorch-Paper
|
||||
path: ./artifacts/paper
|
||||
|
||||
- name: 📥 Download Guide PDF
|
||||
if: needs.build-guide.result == 'success'
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: TinyTorch-Guide
|
||||
path: ./artifacts/guide
|
||||
|
||||
26
.github/workflows/tinytorch-validate-dev.yml
vendored
26
.github/workflows/tinytorch-validate-dev.yml
vendored
@@ -217,10 +217,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
@@ -262,10 +262,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
@@ -305,10 +305,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
@@ -348,10 +348,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
@@ -393,10 +393,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
@@ -428,7 +428,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout (for test script only)
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
sparse-checkout: |
|
||||
tinytorch/scripts/test-fresh-install.sh
|
||||
@@ -462,10 +462,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
|
||||
4
.github/workflows/update-contributors.yml
vendored
4
.github/workflows/update-contributors.yml
vendored
@@ -49,12 +49,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
|
||||
Reference in New Issue
Block a user