import Security and CoreFoundation frameworks (#36) #189
This file contains 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
# Copyright (c) Microsoft Corporation. | |
# Licensed under the MIT License. | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
name: Test | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [1.22.x, 1.23.x] | |
macos-version: [macos-13, macos-14, macos-15] | |
runs-on: ${{ matrix.macos-version }} | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v4 | |
- name: Build CryptoKit.o | |
run: bash gen-swift-bindings.sh | |
- name: Run Go Tests | |
run: go test -gcflags=all=-d=checkptr -count 10 -v ./... | |
- name: Run Swift Tests | |
working-directory: cryptokit | |
run: swift test | |
santise: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Ensure PR does not contain CryptoKit.o | |
run: | | |
if git diff --name-only HEAD^ | grep -q internal/cryptokit/CryptoKit.o; then | |
echo "CryptoKit.o has been checked in. Please remove this from your PR." | |
exit 1 | |
fi |