RTIC v2.x #267
Workflow file for this run
This file contains 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: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }} | |
container: | |
image: ghcr.io/churrosoft/openefi_docker:main | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GH_REPO_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build firmware | |
run: cargo b | |
- name: create build tag | |
run: | | |
echo "git_hash=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV | |
- name: Check Hash | |
run: echo "${{ env.git_hash }}" | |
- name: rename build file | |
run: mv target/thumbv7em-none-eabihf/release/open_efi "OpenEFI_${git_hash}.bin" | |
- name: Check if firmware files exits | |
run: | | |
echo "BINARY=$(find . -type f -name "*.bin")" >> $GITHUB_ENV | |
- uses: actions/upload-artifact@v3 | |
name: Upload firmware files | |
with: | |
name: ${{ env.git_hash }} | |
path: | | |
${{ env.BINARY }} |