-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.31 KB
/
ci.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
54
55
56
57
name: Build
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Installing dependencies
run: |
sudo apt-get update
sudo apt-get -y install cmake fakeroot build-essential debhelper
- name: Building elf2vkp
run: |
fakeroot debian/rules binary
fakeroot debian/rules clean
cmake -B build -DBUILD_STATIC:BOOL=TRUE -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)
cd build
tar -cpvzf elf2vkp.tar.gz ./elf2vkp
- uses: softprops/action-gh-release@v1
with:
token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
../*.deb
build/elf2vkp.tar.gz
build-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Building elf2vkp
run: |
cmake -B build
cmake --build build --config Release
- uses: softprops/action-gh-release@v1
with:
token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
build/Release/elf2vkp.exe