Skip to content

Commit 4669274

Browse files
committed
chore: add gh action to build with msvc
1 parent 3959cd3 commit 4669274

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: libession-util Windows with MSVC build test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
- build-msvc-on-gh-workflow
9+
10+
pull_request:
11+
branches:
12+
- main
13+
- dev
14+
15+
concurrency:
16+
group: ${{ github.workflow }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build:
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
os: [windows-2022]
26+
env:
27+
SIGNAL_ENV: production
28+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
steps:
30+
- run: git config --global core.autocrlf false
31+
32+
- name: Checkout git repo
33+
uses: actions/checkout@v4
34+
with:
35+
submodules: 'recursive'
36+
37+
- name: Add msbuild to PATH
38+
uses: microsoft/[email protected]
39+
if: runner.os == 'Windows'
40+
41+
- name: build libsession-util on Windows with MSVC
42+
shell: bash
43+
run: mkdir build && cd build && cmake ../ -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_BUILD_TYPE=Release -DSUBMODULE_CHECK=OFF -DLOCAL_MIRROR=https://oxen.rocks/deps -DENABLE_ONIONREQ=OFF && ls -la && pwd && make -j16

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ if(CCACHE_PROGRAM)
1616
endforeach()
1717
endif()
1818

19-
2019
project(libsession-util
2120
VERSION 1.2.0
2221
DESCRIPTION "Session client utility library"

0 commit comments

Comments
 (0)