Skip to content

Commit

Permalink
publish kernels as software releases
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Sep 14, 2024
1 parent 5429611 commit 425e8fa
Showing 1 changed file with 29 additions and 16 deletions.
45 changes: 29 additions & 16 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
echo "$Env:Programfiles\qemu" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
shell: pwsh
- uses: actions/checkout@v4
with:
submodules: true
- name: Check Cargo availability
run: cargo --version
- name: Install bootimage
Expand All @@ -58,23 +56,38 @@ jobs:
- name: run (windows)
if: ${{ matrix.os == 'windows-latest' }}
run: pwsh -command ".\$GITHUB_WORKSPACE\test.ps1"
- name: Build release for v86 (i686)
run:
cargo build --target=i686-eduos.json --release --features vga --no-default-features
- name: Upload the artifact
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v4
with:
name: i686-eduos-stage0
path: |
target/i686-eduos/release/eduos-rs
publish:
needs: build
name: Upload release
runs-on: ubuntu-latest
needs: build

steps:
- uses: actions/checkout@v4
- name: Check Cargo availability
run: cargo --version
- name: Build release version (i686)
run:
cargo build --target=i686-eduos.json --release --features vga --no-default-features
- name: Create artifacts
run: |
mkdir -p i686/stage0
cp target/i686-eduos/release/eduos-rs i686/stage0/
- uses: actions/upload-artifact@v4
- name: Get artifacts
uses: actions/download-artifact@v4
with:
name: i686-eduos-stage0
path: .

- name: Display structure of downloaded files
run: ls -R

- name: Release to GitHub
uses: ncipollo/release-action@v1
with:
name: i686-stage0
path: i686
name: Latest Release
tag: latest
commit: stage0
body: ${{ github.event.head_commit.message }}
artifacts: "i686-eduos-stage0"
prerelease: true

0 comments on commit 425e8fa

Please sign in to comment.