Skip to content

Commit 465cfb8

Browse files
Rework the repo to build edk2 release tags
The builder this repo used to pull from has been turned off. It would be nice to have up-to-date edk2 release builds for use with testing in https://github.com/rust-osdev/uefi-rs, without relying on the vagaries of Linux distro releases. Doing our own builds also allows us to ensure we have exactly the build options we want for use with VM testing. As described in the readme, the intended usage is manually pushing a tag corresponding to a release tag in the edk2 repo. That tag will be built in a container, and the resulting tarball will be pushed as a release in this repo (as long as the release doesn't already exist.) I've intentionally kept the container build very simple and linear to make it clear what options are being set for each edk2 build. That leads to some duplication there, but I think the end result is quite easy to follow.
1 parent 5b535a3 commit 465cfb8

File tree

9 files changed

+434
-746
lines changed

9 files changed

+434
-746
lines changed

.github/workflows/build_tag.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Create Release
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
build_tag:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- run: cargo run -- --container-cmd=docker --create-release $GITHUB_REF_NAME
16+
env:
17+
GH_TOKEN: ${{ github.token }}

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
7+
jobs:
8+
validate:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: Swatinem/rust-cache@v2
13+
- run: cargo check
14+
- run: cargo test
15+
- run: cargo fmt -- --check
16+
- run: cargo clippy -- -D warnings

.github/workflows/create_release.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
edk2-*-bin*

0 commit comments

Comments
 (0)