mirror of
https://github.com/XunilGroup/XunilOS.git
synced 2026-06-02 11:44:24 +02:00
Checkout repository with submodules: recursive
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user