Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruhlmann committed Jul 15, 2024
1 parent 5dfdba8 commit 8defabf
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 95 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up environment
run: |
sudo apt-get update
sudo apt-get install -y build-essential gcc gnu-efi mtools parted ovmf qemu-system-x86
- name: Build UEFI application
id: system-paths
run: |
export INCLUDE_DIRS="$(dirname $(find /usr/include -name efi.h | head -n 1))"
export LD_OBJ="$(find /usr/lib -name crt0-efi-x86_64.o | head -n 1)"
export EFI_LDS="$(find /usr/lib -name elf_x86_64_efi.lds | head -n 1)"
export BIOS_FD="$(find /usr/share -name OVMF.fd | head -n 1)"
export LD_EXTRA="-L$(dirname $(find /usr/lib -name libgnuefi.a | head -n 1))"
make main.efi reboot.img
- name: Archive build artifacts
uses: actions/upload-artifact@v2
with:
name: reboot-artifacts
path: |
main.efi
reboot.img
95 changes: 0 additions & 95 deletions .github/workflows/ci.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: release

on:
tags:
- '*.*.*'

release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: reboot-artifacts
path: ./artifacts

- name: Create a Release
uses: elgohr/Github-Release-Action@v5
with:
body_path: CHANGELOG.md
files: |
Release.txt
LICENSE
prerelease: false
draft: false
fail_on_unmatched_files: true
generate_release_notes: true
make_latest: true
permissions:
contents: write

0 comments on commit 8defabf

Please sign in to comment.