forked from mtrojnar/osslsigncode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configured macOS environment for arm64 architecture
- Loading branch information
Showing
1 changed file
with
24 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
generator: Unix Makefiles | ||
vcpkg_root: | ||
- id: macOS | ||
triplet: x64-osx | ||
triplet: arm64-osx | ||
compiler: clang | ||
os: macOS-latest | ||
generator: Unix Makefiles | ||
|
@@ -114,6 +114,13 @@ jobs: | |
sudo apt-get remove needrestart || echo Ignored | ||
sudo apt-get install -y libssl-dev zlib1g-dev python3-cryptography | ||
- name: Set up Python (macOS) | ||
if: runner.os == 'macOS' | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.13' | ||
architecture: 'arm64' | ||
|
||
- name: Set up Python virtual environment (macOS) | ||
if: runner.os == 'macOS' | ||
run: | | ||
|
@@ -131,13 +138,14 @@ jobs: | |
if: runner.os == 'macOS' | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.17.0' | ||
cmake-version: '3.20.0' | ||
|
||
- name: Install python3 cryptography module (macOS) | ||
if: runner.os == 'macOS' | ||
run: | | ||
pip install --upgrade pip | ||
pip install cryptography | ||
source venv/bin/activate | ||
python -m pip install --upgrade pip | ||
ARCHFLAGS="-arch arm64" python -m pip install --no-binary :all: cryptography | ||
- name: Find the latest version of Python (Windows) | ||
if: runner.os == 'Windows' | ||
|
@@ -171,7 +179,8 @@ jobs: | |
-DCMAKE_OSX_ARCHITECTURES=arm64 | ||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/dist | ||
-DVCPKG_TARGET_TRIPLET=${{matrix.triplet}} | ||
-DVCPKG_TARGET_TRIPLET=${{matrix.triplet}} \ | ||
-DPython3_EXECUTABLE="${{ github.workspace }}/venv/bin/python" | ||
|
||
- name: Build | ||
run: cmake | ||
|
@@ -182,8 +191,9 @@ jobs: | |
working-directory: ${{github.workspace}}/build | ||
if: runner.os == 'macOS' | ||
run: | | ||
python --version | ||
source venv/bin/activate | ||
python -c "import sys; print(sys.executable)" | ||
python --version | ||
python -c "import cryptography; print(f'Python3 cryptography version {cryptography.__version__}')" | ||
- name: List files (Linux/macOS) | ||
|
@@ -194,7 +204,14 @@ jobs: | |
if: runner.os == 'Windows' | ||
run: Get-ChildItem -Recurse -Name .. | ||
|
||
- name: Test | ||
- name: Test (macOS) | ||
if: runner.os == 'macOS' | ||
working-directory: ${{github.workspace}}/build | ||
run: | | ||
source ../venv/bin/activate | ||
ctest -C ${{env.BUILD_TYPE}} | ||
- name: Test (non-macOS) | ||
working-directory: ${{github.workspace}}/build | ||
run: ctest -C ${{env.BUILD_TYPE}} | ||
|
||
|