gh-actions: Upload release with hash and date #25
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: CI | |
| on: | |
| push: | |
| jobs: | |
| build: | |
| name: Build UEFI executable | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Rust toolchain | |
| run: rustup show | |
| - name: Build UEFI app (release) | |
| run: make release | |
| - name: Generate artifact version | |
| run: | | |
| echo "VERSIONINFO=$(date -u +'%Y-%m-%d-%H-%M-%S')_$GITHUB_SHA" >> $GITHUB_ENV | |
| # Upload release first to get fast builds from CI | |
| - name: Upload UEFI app (release) | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: inputmodules_release_${{ env.VERSIONINFO }} | |
| path: target/x86_64-unknown-uefi/release/inputmodules.efi | |
| - name: Build UEFI app (QEMU) | |
| run: make qemu | |
| lints: | |
| name: Lints | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Rust toolchain | |
| run: rustup show | |
| - name: Run cargo fmt | |
| run: cargo fmt --all -- --check | |
| - name: Run cargo clippy | |
| run: make clippy |