Add Discord server links and badge to README.md #163
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: 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 |