-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.26 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
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 meson wrap update
- name: Build C++ project
run: ./libfakedevice-cpp/autorun.sh
- name: Build C project
run: ./libfakedevice-c/autorun.sh
- name: Build Rust project
run: |
cd libfakedevice
cargo build
- name: Package artifacts
run: |
cp -r libfakedevice-cpp/build/*.zip binaries/
cp -r libfakedevice-c/build/*.zip binaries/
cp -r libfakedevice/target/debug/libfakedevice* binaries/
- name: Create a release
uses: softprops/action-gh-release@v1
with:
files: |
./binaries/libfakedevice-cpp/**/*.zip
./binaries/libfakedevice-c/**/*.zip
./binaries/libfakedevice/**/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}