From 38a8c189100f37035936ef0c909f481856ae023f Mon Sep 17 00:00:00 2001 From: csd4ni3l <96988024+csd4ni3l@users.noreply.github.com> Date: Sun, 31 May 2026 23:47:19 +0200 Subject: [PATCH] Checkout repository with submodules: recursive --- .github/workflows/release.yml | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86d9789..3681b5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,8 @@ name: Build & Release XunilOS - on: push: branches: - main - jobs: build: name: Build (${{ matrix.karch }}) @@ -12,11 +10,12 @@ jobs: strategy: matrix: karch: [x86_64, aarch64] - steps: - - name: Checkout repository + - name: Checkout repository with submodules uses: actions/checkout@v4 - + with: + submodules: recursive + token: ${{ secrets.GITHUB_TOKEN }} - name: Install build dependencies run: | sudo apt-get update @@ -27,47 +26,44 @@ jobs: binutils-aarch64-linux-gnu \ xorriso \ curl - - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + - name: Install Rust nightly toolchain + uses: dtolnay/rust-toolchain@nightly with: targets: | x86_64-unknown-none aarch64-unknown-none - - name: Run build script run: bash build_all.sh env: KARCH: ${{ matrix.karch }} - - name: Upload ISO artifact uses: actions/upload-artifact@v4 with: name: XunilOS-${{ matrix.karch }}.iso path: XunilOS-${{ matrix.karch }}.iso if-no-files-found: error - release: name: Publish Release runs-on: ubuntu-latest needs: build permissions: contents: write - steps: - - name: Checkout repository + - name: Checkout repository with submodules uses: actions/checkout@v4 - + with: + submodules: recursive + token: ${{ secrets.GITHUB_TOKEN }} - name: Download x86_64 ISO uses: actions/download-artifact@v4 with: name: XunilOS-x86_64.iso - + path: ./artifacts - name: Download aarch64 ISO uses: actions/download-artifact@v4 with: name: XunilOS-aarch64.iso - + path: ./artifacts - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: @@ -76,6 +72,6 @@ jobs: body: | Automated release for commit [${{ github.sha }}](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}) files: | - XunilOS-x86_64.iso - XunilOS-aarch64.iso + artifacts/XunilOS-x86_64.iso + artifacts/XunilOS-aarch64.iso fail_on_unmatched_files: true