2021-09-23 21:27:05 +02:00
|
|
|
name: Build and test with docker
|
|
|
|
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-image:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build the Docker image
|
2021-09-23 22:04:08 +02:00
|
|
|
run: docker build -t aasdk_builder --file buildenv/Dockerfile .
|
2021-09-23 22:01:34 +02:00
|
|
|
compile:
|
2021-09-23 21:27:05 +02:00
|
|
|
runs-on: ${{ matrix.host }}
|
2021-09-23 22:04:08 +02:00
|
|
|
needs: [build-image]
|
2021-09-23 21:27:05 +02:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
max-parallel: 3
|
|
|
|
matrix:
|
|
|
|
host: [
|
|
|
|
"ubuntu-latest",
|
|
|
|
#"macos-10.15",
|
|
|
|
]
|
|
|
|
config:
|
|
|
|
- {
|
|
|
|
name: "armhf Release",
|
2021-09-23 22:04:08 +02:00
|
|
|
arch: "armhf"
|
2021-09-23 21:27:05 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
name: "amd64 Release",
|
2021-09-23 22:04:08 +02:00
|
|
|
arch: "amd64"
|
2021-09-23 21:27:05 +02:00
|
|
|
}
|
2021-09-23 22:01:34 +02:00
|
|
|
|
|
|
|
name: 'Upload release: ${{ matrix.config.name }}'
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: 'Build ${{ matrix.config.arch }} Debian package'
|
2021-09-23 22:04:08 +02:00
|
|
|
run: docker run -v "${PWD}/release":/release aasdk_builder:latest ${{ matrix.config.arch }}
|