-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.52 KB
/
build-and-tests.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: build-and-test
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on: [pull_request]
jobs:
build-and-test-build-job:
runs-on: ubuntu-latest
steps:
- name: Remove unnecessary files
run: |
df . -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df . -h
- uses: actions/checkout@v4
with:
github-server-url: https://github.com/dogusyuksel/cc2640r2f_ble.git
lfs: true
- name: clone docker and linting
run: |
git clone https://github.com/dogusyuksel/embedded_docker.git docker
git clone https://github.com/dogusyuksel/embedded_linting.git linting
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Project Docker
uses: docker/build-push-action@v5
with:
load: true
tags: |
${{ secrets.DOCKER_REPO }}:master
context: .
file: docker/Dockerfile
pull: true
push: false
provenance: false
- name: Build Check
run: |
./docker/run_docker.sh ${{ secrets.DOCKER_REPO }}:master "cd /workspace && source environment && cd firmware/ble5_simple_peripheral_cc2640r2lp_app && make -C ./FlashROM_StackLibrary/ clean && make -C ./FlashROM_StackLibrary/ all"