mirror of
https://github.com/XunilGroup/XunilOS.git
synced 2026-06-02 14:44:26 +02:00
Checkout repository with submodules: recursive
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
name: Build & Release XunilOS
|
name: Build & Release XunilOS
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build (${{ matrix.karch }})
|
name: Build (${{ matrix.karch }})
|
||||||
@@ -12,11 +10,12 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
karch: [x86_64, aarch64]
|
karch: [x86_64, aarch64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository with submodules
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
@@ -27,47 +26,44 @@ jobs:
|
|||||||
binutils-aarch64-linux-gnu \
|
binutils-aarch64-linux-gnu \
|
||||||
xorriso \
|
xorriso \
|
||||||
curl
|
curl
|
||||||
|
- name: Install Rust nightly toolchain
|
||||||
- name: Install Rust toolchain
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
with:
|
||||||
targets: |
|
targets: |
|
||||||
x86_64-unknown-none
|
x86_64-unknown-none
|
||||||
aarch64-unknown-none
|
aarch64-unknown-none
|
||||||
|
|
||||||
- name: Run build script
|
- name: Run build script
|
||||||
run: bash build_all.sh
|
run: bash build_all.sh
|
||||||
env:
|
env:
|
||||||
KARCH: ${{ matrix.karch }}
|
KARCH: ${{ matrix.karch }}
|
||||||
|
|
||||||
- name: Upload ISO artifact
|
- name: Upload ISO artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: XunilOS-${{ matrix.karch }}.iso
|
name: XunilOS-${{ matrix.karch }}.iso
|
||||||
path: XunilOS-${{ matrix.karch }}.iso
|
path: XunilOS-${{ matrix.karch }}.iso
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Publish Release
|
name: Publish Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository with submodules
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Download x86_64 ISO
|
- name: Download x86_64 ISO
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: XunilOS-x86_64.iso
|
name: XunilOS-x86_64.iso
|
||||||
|
path: ./artifacts
|
||||||
- name: Download aarch64 ISO
|
- name: Download aarch64 ISO
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: XunilOS-aarch64.iso
|
name: XunilOS-aarch64.iso
|
||||||
|
path: ./artifacts
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
@@ -76,6 +72,6 @@ jobs:
|
|||||||
body: |
|
body: |
|
||||||
Automated release for commit [${{ github.sha }}](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }})
|
Automated release for commit [${{ github.sha }}](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }})
|
||||||
files: |
|
files: |
|
||||||
XunilOS-x86_64.iso
|
artifacts/XunilOS-x86_64.iso
|
||||||
XunilOS-aarch64.iso
|
artifacts/XunilOS-aarch64.iso
|
||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
|
|||||||
Reference in New Issue
Block a user