fix actions
This commit is contained in:
@ -1,10 +1,11 @@
|
|||||||
name: Build ISO
|
name: Release ISO
|
||||||
run-name: ${{ gitea.actor }} on ${{ gitea.event_name }}
|
on:
|
||||||
on: [push]
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-iso:
|
release:
|
||||||
name: Build ISO (nightly-2025-04-27)
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -24,18 +25,6 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y mtools xorriso
|
sudo apt-get install -y mtools xorriso
|
||||||
|
|
||||||
- name: cargo check (nel_os_bootloader)
|
|
||||||
working-directory: nel_os_bootloader
|
|
||||||
run: cargo check
|
|
||||||
|
|
||||||
- name: cargo check (nel_os_common)
|
|
||||||
working-directory: nel_os_common
|
|
||||||
run: cargo check
|
|
||||||
|
|
||||||
- name: cargo check (nel_os_kernel)
|
|
||||||
working-directory: nel_os_kernel
|
|
||||||
run: cargo check
|
|
||||||
|
|
||||||
- name: cargo build --release (nel_os_bootloader)
|
- name: cargo build --release (nel_os_bootloader)
|
||||||
working-directory: nel_os_bootloader
|
working-directory: nel_os_bootloader
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
@ -44,9 +33,16 @@ jobs:
|
|||||||
working-directory: nel_os_bootloader
|
working-directory: nel_os_bootloader
|
||||||
run: bash ./create-iso.sh ./target/x86_64-unknown-uefi/release/nel_os_bootloader.elf
|
run: bash ./create-iso.sh ./target/x86_64-unknown-uefi/release/nel_os_bootloader.elf
|
||||||
|
|
||||||
- name: Upload ISO artifact
|
- name: Create Gitea Release & Upload ISO
|
||||||
uses: actions/upload-artifact@v4
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
env:
|
||||||
|
NODE_OPTIONS: '--experimental-fetch'
|
||||||
with:
|
with:
|
||||||
name: nel_os.iso
|
server_url: ${{ github.server_url }}
|
||||||
path: nel_os_bootloader/nel_os.iso
|
repository: ${{ github.repository }}
|
||||||
if-no-files-found: error
|
tag_name: ${{ github.ref_name }}
|
||||||
|
name: ${{ github.ref_name }}
|
||||||
|
files: |
|
||||||
|
nel_os_bootloader/nel_os.iso
|
||||||
|
token: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
|
33
.gitea/workflows/check.yaml
Normal file
33
.gitea/workflows/check.yaml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Check
|
||||||
|
run-name: ${{ gitea.actor }} on ${{ gitea.event_name }}
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-iso:
|
||||||
|
name: Build ISO (nightly-2025-04-27)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Rust (1.88.0-nightly 2025-04-27)
|
||||||
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: nightly-2025-04-27
|
||||||
|
override: true
|
||||||
|
components: rust-src
|
||||||
|
|
||||||
|
- name: Verify rustc version
|
||||||
|
run: rustc -V
|
||||||
|
|
||||||
|
- name: cargo check (nel_os_bootloader)
|
||||||
|
working-directory: nel_os_bootloader
|
||||||
|
run: cargo check
|
||||||
|
|
||||||
|
- name: cargo check (nel_os_common)
|
||||||
|
working-directory: nel_os_common
|
||||||
|
run: cargo check
|
||||||
|
|
||||||
|
- name: cargo check (nel_os_kernel)
|
||||||
|
working-directory: nel_os_kernel
|
||||||
|
run: cargo check
|
||||||
|
|
Reference in New Issue
Block a user