Skip to content

chore: add gh action to build with msvc #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: libession-util Windows with MSVC build test

on:
push:
branches:
- main
- dev
- build-msvc-on-gh-workflow

pull_request:
branches:
- main
- dev

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2022]
env:
SIGNAL_ENV: production
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- run: git config --global core.autocrlf false

- name: Checkout git repo
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Add msbuild to PATH
uses: microsoft/[email protected]
if: runner.os == 'Windows'

- name: build libsession-util on Windows with MSVC
shell: bash
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
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ if(CCACHE_PROGRAM)
endforeach()
endif()


project(libsession-util
VERSION 1.2.0
DESCRIPTION "Session client utility library"
Expand Down