Skip to content

Commit

Permalink
Matrix usage for asm
Browse files Browse the repository at this point in the history
  • Loading branch information
ADM228 committed Jul 22, 2024
1 parent 598ac87 commit 094b34c
Showing 1 changed file with 13 additions and 40 deletions.
53 changes: 13 additions & 40 deletions .github/workflows/firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,17 @@ name: ATtiny85APU assembly
on: [push]

jobs:
build_t85:
build:
runs-on: ubuntu-latest
name: Assemble for the ATtiny85
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache avra
uses: ./.github/actions/cache_avra
- name: Set path
run: |
echo "${{ github.workspace }}/opt/avra/bin" >> $GITHUB_PATH
- name: Build the firmware
run: make
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: attiny85apu_t85.hex
path: bin/avr/main.hex
build_t45:
runs-on: ubuntu-latest
name: Assemble for the ATtiny45
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache avra
uses: ./.github/actions/cache_avra
- name: Set path
run: |
echo "${{ github.workspace }}/opt/avra/bin" >> $GITHUB_PATH
- name: Build the firmware
run: make ATTINY=45
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: attiny85apu_t45.hex
path: bin/avr/main.hex
build_t25:
runs-on: ubuntu-latest
name: Assemble for the ATtiny25
name: Assemble for the ATtiny${{ matrix.platform.attiny }}

strategy:
fail-fast: false
matrix:
platform:
- {attiny: 25}
- {attiny: 45}
- {attiny: 85}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -51,9 +23,10 @@ jobs:
run: |
echo "${{ github.workspace }}/opt/avra/bin" >> $GITHUB_PATH
- name: Build the firmware
run: make ATTINY=25
run: make ATTINY=${{ matrix.platform.attiny }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: attiny85apu_t25.hex
name: attiny85apu_t${{ matrix.platform.attiny }}.hex
path: bin/avr/main.hex

0 comments on commit 094b34c

Please sign in to comment.