Skip to content

bump ci

bump ci #51

Workflow file for this run

name: Compile Bootloaders
on:
push:
branches: [ master ]
release:
types:
- published
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: debian:latest
steps:
- uses: actions/checkout@v3
- name: Build jumploaders
run: sh build.sh
- name: Find artifact files
run: find build/ -type f -name "*.bin" > artifact_files.txt
- name: Print files for debugging
run: cat artifact_files.txt
- name: Create temporary directory for artifacts
run: |
mkdir -p temp_artifacts
while IFS= read -r file; do
cp "$file" temp_artifacts/
done < artifact_files.txt
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Pre-Compiled Jumploaders
path: temp_artifacts/
if-no-files-found: error
include-hidden-files: false
- name: Clean up
run: rm -rf temp_artifacts
publish_release:
name: Publish (Release)
runs-on: ubuntu-latest
needs: [build]
if: github.event.release.tag_name
steps:
- uses: actions/download-artifact@v3
with:
name: Pre-Compiled Jumploaders
path: build/
- uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Release ${{ github.ref_name }}
files: build/*.bin
fail_on_unmatched_files: true