Complement b688880294306db5bbc8a2ddc6d65396603450bf by using i686 arc… #102
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
pull_request: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install distro deps | |
run: sudo apt-get install -y build-essential nasm | |
- name: Rebuild SeaBIOS | |
run: | | |
make seabios | |
- name: make x86_64 | |
run: | | |
make ARCH=x86_64 | |
mkdir -p bin | |
cp bin-x86_64/csmwrap.efi bin/csmwrapx64.efi | |
- name: make ia32 | |
run: | | |
make ARCH=ia32 | |
mkdir -p bin | |
cp bin-ia32/csmwrap.efi bin/csmwrapia32.efi | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: csmwrap.efi | |
path: bin/*.efi | |
- name: Upload release | |
uses: actions/upload-release-asset@v1 | |
if: ${{ github.event_name == 'release' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: bin/csmwrapx64.efi | |
asset_name: csmwrapx64.efi | |
asset_content_type: application/octet-stream | |
- name: Upload release | |
uses: actions/upload-release-asset@v1 | |
if: ${{ github.event_name == 'release' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: bin/csmwrapia32.efi | |
asset_name: csmwrapia32.efi | |
asset_content_type: application/octet-stream |