aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/compile.yml
blob: 78ca9cc7e63096d07220e2c703bd708e72bfe9c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: build all

on:
  push:
    branches: [ "trunk", "gretel-actions" ]
  pull_request:
    branches: [ "trunk" ]

jobs:
  compile:
    runs-on: ubuntu-latest

    steps:

    - name: Checkout
      uses: actions/checkout@master

    - name: Requirements
      run: |
        sudo apt -qqy update
        sudo apt -qqy install avr-libc binutils-avr gcc-avr wget unzip

    - name: Install Device Family Pack
      run: |
        ./make dfp

    - name: Compile All
      run: |
        ./make
        echo "ARTIFACT_NAME=${GITHUB_WORKFLOW}-${GITHUB_REF_NAME}-$(git rev-parse --short ${GITHUB_SHA})-${GITHUB_RUN_NUMBER}" >> "${GITHUB_ENV}"

    - name: Store Artifacts
      uses: actions/upload-artifact@master
      with:
        name: ${{ env.ARTIFACT_NAME }}
        if-no-files-found: error
        path: |
          hex/*.hex