Skip to content

Have some notes of who requested which feature. #90

Have some notes of who requested which feature.

Have some notes of who requested which feature. #90

Workflow file for this run

name: CMake Build
on: [push]
jobs:
build:
#if: contains(github.ref, 'tags/v')
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: '1.21' # I want latest, but I need to select some arbitrary version for installing the 32bit variant, see https://github.com/actions/setup-go/issues/347#issuecomment-1699466025
architecture: x32
cache: false # cannot work since this project does not make use of the go.sum file
- name: Install x86 GCC
run: C:\msys64\usr\bin\pacman.exe --sync --needed --noconfirm mingw-w64-i686-gcc mingw-w64-i686-gcc
- name: Add x86 GCC to PATH
shell: pwsh
run: echo "C:\msys64\mingw32\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: vcpkg
uses: johnwason/vcpkg-action@v6
with:
pkgs: opusfile
triplet: 'x86-mingw-static'
token: ${{ github.token }}
- name: Configure
run: cmake -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DCMAKE_BUILD_TYPE=Debug -DVCPKG_TARGET_TRIPLET=x86-mingw-static -DVCPKG_MANIFEST_MODE=OFF -S . -B build -G "MSYS Makefiles" -DCMAKE_SHARED_LINKER_FLAGS="-static-libgcc"
- name: Build
run: cmake --build build
- name: Strip
run: strip -s build/src/c/libwhatsmeow.dll
- name: Upload
uses: actions/upload-artifact@v4
with:
path: build/src/c/libwhatsmeow.dll
name: libwhatsmeow.dll
- name: Create Release
if: contains(github.ref, 'tags/v')
uses: ncipollo/release-action@v1
with:
artifacts: libwhatsmeow.dll
bodyFile: CHANGELOG.md