From 466927455acc93c7dff0f38a16a8cbf3a275677c Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 21 Jun 2024 09:41:07 +1000 Subject: [PATCH] chore: add gh action to build with msvc --- .github/workflows/build.yml | 43 +++++++++++++++++++++++++++++++++++++ CMakeLists.txt | 1 - 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..02faa80 --- /dev/null +++ b/.github/workflows/build.yml @@ -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/setup-msbuild@v1.3.1 + 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 diff --git a/CMakeLists.txt b/CMakeLists.txt index 1026503..ee2f88e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,6 @@ if(CCACHE_PROGRAM) endforeach() endif() - project(libsession-util VERSION 1.2.0 DESCRIPTION "Session client utility library"