ci: libsodium was missing #2
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies (Linux) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libssl-dev libcurl4-openssl-dev libsodium-dev | |
| - name: Install dependencies (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install openssl curl libsodium | |
| - name: Install dependencies (Windows) | |
| if: runner.os == 'Windows' | |
| run: vcpkg install openssl:x64-windows curl:x64-windows libsodium:x64-windows | |
| - name: Configure | |
| shell: bash | |
| run: | | |
| extra=() | |
| if [ "$RUNNER_OS" = "Windows" ]; then | |
| root="${VCPKG_INSTALLATION_ROOT:-C:/vcpkg}" | |
| extra+=("-DCMAKE_TOOLCHAIN_FILE=${root}/scripts/buildsystems/vcpkg.cmake") | |
| fi | |
| cmake -S . -B build -DAUTHFORGE_BUILD_VECTOR_GENERATOR=OFF "${extra[@]}" | |
| - name: Build | |
| run: cmake --build build --config Release |