Merge pull request #15 from Bilb/bump-for-libquic #63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: libession-util-nodejs build test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2022, macos-13, ubuntu-22.04] | |
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: Install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
if: runner.os == 'Windows' | |
# Note: we will be able to get rid of this once the whole tree of submodules has the latest fetch of oxen-logging | |
# We'd need oxen-libquic to be updated to have the commit `bc7167f90e71643b43c2ea9cf7d1fefa5045f8d4`, but we don't want to | |
# update libquic that late. | |
# We will soon, though :tm: | |
- name: sed it | |
if: runner.os == 'Windows' | |
shell: bash | |
run: | | |
sed -i "s/target_compile_options(oxen-logging-warnings INTERFACE/#target_compile_options(oxen-logging-warnings INTERFACE/" libsession-util/external/oxen-libquic/external/oxen-logging/CMakeLists.txt | |
cat libsession-util/external/oxen-libquic/external/oxen-logging/CMakeLists.txt | |
- name: build libsession-util-nodejs | |
shell: bash | |
run: yarn install --frozen-lockfile |