add new layout D_X,E_X for BB51. #210
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 Firmware | |
on: | |
push: | |
tags: | |
- '*' | |
pull_request_target: | |
branches: | |
- main | |
- develop | |
types: [opened, reopened, synchronize] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/bird-sanctuary/bluejay-builder | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.github_token }} | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@v3 | |
- name: Cache Toolchain | |
id: cache-toolchain | |
uses: actions/cache@v3 | |
with: | |
path: ~/.wine | |
key: toolchain-cache | |
- name: Prepare build environment | |
if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }} | |
env: | |
BUILD_ENV_URL: ${{ secrets.BUILD_ENV_URL }} | |
BUILD_ENV_PASSWORD: ${{ secrets.BUILD_ENV_PASSWORD }} | |
run: | | |
rm -rf ~/.wine | |
wget -c "$BUILD_ENV_URL" -O wine.zip | |
unzip -P "$BUILD_ENV_PASSWORD" wine.zip -d ~/ | |
- name: Build | |
run: | | |
make all | |
mv build/hex "bluejay-${GITHUB_RUN_NUMBER}" | |
- name: Bundle Artifacts | |
run: tar -cvzf bluejay-${{ github.run_number }}.tar.gz "bluejay-${GITHUB_RUN_NUMBER}" | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bluejay-ci-${{ github.run_number }} | |
path: bluejay-${{ github.run_number }}.tar.gz | |
retention-days: 30 | |
- name: Generate Changelog | |
if: startsWith(github.ref, 'refs/tags/v') | |
id: github_release | |
uses: mikepenz/release-changelog-builder-action@v3 | |
with: | |
configuration: ".changelog-configuration.json" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Release | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: stylesuxx/[email protected] | |
with: | |
body: ${{steps.github_release.outputs.changelog}} | |
files: ./bluejay-${{ github.run_number }}/*.hex | |
token: ${{ secrets.ACCESS_TOKEN }} | |
prerelease: true |