Skip to content

Commit ac5aedc

Browse files
committed
Add actions
1 parent bc3d3bc commit ac5aedc

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
CONFIGURE_PRESET: "default-release"
11+
12+
jobs:
13+
build-linux:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
submodules: 'true'
19+
- name: Setup Binary Ninja
20+
id: setup-binja
21+
uses: emesare/setup-binary-ninja@v1-beta
22+
with:
23+
python-support: false
24+
license: ${{ secrets.BN_SERIAL }}
25+
- name: Configure CMake
26+
run: cmake --preset ${{env.CONFIGURE_PRESET}} -D BN_INSTALL_DIR=${{ steps.setup-binja.outputs.install-path }}
27+
- name: Build
28+
working-directory: ${{github.workspace}}/out/build
29+
run: cmake --build ${{env.CONFIGURE_PRESET}}
30+
- name: Upload artifact
31+
uses: actions/upload-artifact@v3
32+
with:
33+
name: linux-${{env.CONFIGURE_PRESET}}
34+
path: ${{github.workspace}}/out/build/${{env.CONFIGURE_PRESET}}/libbinja-msvc.so

0 commit comments

Comments
 (0)