Skip to content

Remove OpenSSL dependency #60

Remove OpenSSL dependency

Remove OpenSSL dependency #60

Workflow file for this run

name: test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
push: { branches: [ main ] }
jobs:
unit-tests:
uses: vapor/ci/.github/workflows/run-unit-tests.yml@main
with:
with_release_mode_testing: true
warnings_as_errors: true
with_linting: true
with_musl: true
with_android: true
android_copy_files: Tests
ios_scheme_name: swift-wallet-Package
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
windows-unit:
if: ${{ !(github.event.pull_request.draft || false) }}
strategy:
fail-fast: false
matrix:
swift-version:
- 6.1
- 6.2
include:
- { swift-version: 6.1, swift-branch: swift-6.1.3-release, swift-tag: 6.1.3-RELEASE }
- { swift-version: 6.2, swift-branch: swift-6.2.3-release, swift-tag: 6.2.3-RELEASE }
runs-on: windows-latest
timeout-minutes: 60
steps:
- name: Install Windows Swift toolchain
uses: compnerd/gha-setup-swift@main
with:
swift-version: ${{ matrix.swift-branch }}
swift-build: ${{ matrix.swift-tag }}
update-sdk-modules: true
- name: Check out code
uses: actions/checkout@v6
- name: Download zlib
run: |
curl -L -o zlib.zip https://www.zlib.net/zlib132.zip
mkdir zlib-132
tar -xf zlib.zip -C zlib-132 --strip-components=1
- name: Build and install zlib
run: |
cd zlib-132
mkdir build
cd build
cmake ..
cmake --build . --config Release
cmake --install . --prefix ../install
- name: Prepare zlib library name for Swift
shell: pwsh
run: |
Copy-Item zlib-132/install/lib/zs.lib zlib-132/install/lib/zlibstatic.lib
- name: Run unit tests
shell: pwsh
run: |
$env:LIB = "$env:GITHUB_WORKSPACE\zlib-132\install\lib;$env:LIB"
swift test -Xcc -I"$env:GITHUB_WORKSPACE/zlib-132/install/include"