-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.3 KB
/
deploy.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: Deploy
on:
push:
branches:
- '*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update
sudo apt install meson clang
sudo apt install libasound2-dev
- name: Build C++ project
run: |
cd libfakedevice-cpp
./autorun.sh
- name: Build C project
run: |
cd libfakedevice-c
./autorun.sh
- name: Build Rust project
run: |
cd libfakedevice
./autorun.sh
- name: Strip C++ binary
run: |
strip ./binaries/fake-firmware-cpp
- name: Strip C binary
run: |
strip ./binaries/fake-firmware-c
- name: Create a release
uses: softprops/action-gh-release@v1
with:
tag_name: v1.0.0
files: |
./binaries/fake-firmware-cpp
./binaries/fake-firmware-c
./binaries/fake-firmware
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}