[CI] Reorder build steps
@@ -55,25 +55,30 @@ jobs:
# # python3 scripts/build_meson_projects.py --only_build libutils
# python3 scripts/build_rust_toolchain.py --rebuild_libc
- #- name: Build OS image
- # shell: bash
- # run: |
- # git submodule update --init --recursive
- # # PT: For nasm in CI
- # python3 scripts/install_dependencies.py
- # # Build userspace headers as the kernel depends on file_manager definitions
- # python3 scripts/build_userspace_headers.py
- # python3 scripts/build_kernel.py --no_run
- # # Run Rust tests
- # python3 scripts/build_rust_toolchain.py --test
+ - name: Build OS image
+ shell: bash
+ run: |
+ git submodule update --init --recursive
+ # PT: For nasm in CI
+ python3 scripts/install_dependencies.py
+ # Build userspace headers as the kernel depends on file_manager definitions
+ python3 scripts/build_userspace_headers.py
+ # Rust libc depends on libutils, so ensure that's built first
+ python3 scripts/build_meson_projects.py
+ # Now we can build the Rust toolchain
+ python3 scripts/build_rust_toolchain.py --rebuild_libc
+ # Finally, compile the kernel and build the OS image
+ python3 scripts/build_kernel.py --no_run
+ # Run Rust tests
+ python3 scripts/build_rust_toolchain.py --test
- #- name: Update nightly release
- # uses: swift-project/github-release@2.0
- # with:
- # token: ${{ secrets.GITHUB_TOKEN }}
- # tag: nightly-${{ github.sha }}
- # files: axle.iso
- # allow_override: true
- # prerelease: false
- # commitish: ${{ github.sha }}
- # gzip: false
+ - name: Update nightly release
+ uses: swift-project/github-release@2.0
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ tag: nightly-${{ github.sha }}
+ files: axle.iso
+ allow_override: true
+ prerelease: false
+ commitish: ${{ github.sha }}
+ gzip: false
