From 76f2b6bf03f557555a5da2558620ee3426103c6e Mon Sep 17 00:00:00 2001 From: Masato Imai Date: Fri, 15 Aug 2025 18:05:10 +0000 Subject: [PATCH] fix actions --- .gitea/workflows/build.yaml | 40 +++++++++++++++++-------------------- .gitea/workflows/check.yaml | 33 ++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 22 deletions(-) create mode 100644 .gitea/workflows/check.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 10aeb66..2412884 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,10 +1,11 @@ -name: Build ISO -run-name: ${{ gitea.actor }} on ${{ gitea.event_name }} -on: [push] +name: Release ISO +on: + push: + tags: + - 'v*' jobs: - build-iso: - name: Build ISO (nightly-2025-04-27) + release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -24,18 +25,6 @@ jobs: sudo apt-get update 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) working-directory: nel_os_bootloader run: cargo build --release @@ -44,9 +33,16 @@ jobs: working-directory: nel_os_bootloader run: bash ./create-iso.sh ./target/x86_64-unknown-uefi/release/nel_os_bootloader.elf - - name: Upload ISO artifact - uses: actions/upload-artifact@v4 + - name: Create Gitea Release & Upload ISO + uses: akkuman/gitea-release-action@v1 + env: + NODE_OPTIONS: '--experimental-fetch' with: - name: nel_os.iso - path: nel_os_bootloader/nel_os.iso - if-no-files-found: error + server_url: ${{ github.server_url }} + repository: ${{ github.repository }} + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + files: | + nel_os_bootloader/nel_os.iso + token: ${{ secrets.TOKEN }} + diff --git a/.gitea/workflows/check.yaml b/.gitea/workflows/check.yaml new file mode 100644 index 0000000..78ad8d3 --- /dev/null +++ b/.gitea/workflows/check.yaml @@ -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 +