Skip to content

Commit

Permalink
WIP: test github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsm committed May 3, 2024
1 parent a8804f7 commit 091a027
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: adsp linux build test
run-name: ${{ github.actor }} pushed a change ( ${{ github.sha }} )
on: [push]
jobs:
build:
name: ${{ matrix.boards.name }}
runs-on: ubuntu-latest
strategy:
matrix:
boards:
[
{
"name": "sc598",
"config": "sc598-som-ezkit_defconfig",
"cross_compile": "aarch64-linux-gnu",
"arch": "arm64"
},
{
"name": "sc594",
"config": "sc594-som-ezkit_defconfig",
"cross_compile": "arm-linux-gnueabi",
"arch": "arm"
},
{
"name": "sc589",
"config": "sc589-ezkit_defconfig",
"cross_compile": "arm-linux-gnueabi",
"arch": "arm"
},
{
"name": "sc584",
"config": "sc584-ezkit_defconfig",
"cross_compile": "arm-linux-gnueabi",
"arch": "arm"
},
{
"name": "sc573",
"config": "sc573-ezkit_defconfig",
"cross_compile": "arm-linux-gnueabi",
"arch": "arm"
}
]
steps:
- name: Setup toolchain
run: |
sudo apt-get update && sudo apt-get install gcc-${{ matrix.boards.cross_compile }}
- name: Check out repository code
uses: actions/checkout@v4
- name: Build ${{ matrix.boards.name }}
run: |
make ARCH=${{ matrix.boards.arch }} ${{ matrix.boards.config }}
make ARCH=${{ matrix.boards.arch }} CROSS_COMPILE=${{ matrix.boards.cross_compile }}- -j$(nproc)

0 comments on commit 091a027

Please sign in to comment.