-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1013 Bytes
/
cicd.yml
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
name: CICD
on:
push:
branches:
- main
jobs:
build:
uses: homebots/workflows/.github/workflows/docker-build-and-push.yml@master
with:
registry: ghcr.io
org: ghcr.io/homebots
defaultBranch: main
imageName: xtensa-gcc
platforms: linux/amd64
secrets:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
self-test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: |
FW=firmware
mkdir -m a+w -p $FW build
ls -al
docker run --rm -u 1000:1000 -v $GITHUB_WORKSPACE:/home/project:rw ghcr.io/homebots/xtensa-gcc:${{github.sha}} make
ls -al $FW
[ -f $FW/0x00000.bin ] && [ -f $FW/0x10000.bin ] && [ -f $FW/0x7b000.bin ] && [ -f $FW/0x7c000.bin ] || exit 1