Setting up a workaround for the network issues with the colima vm #151
Workflow file for this run
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
name: Build and Test | |
on: | |
push: | |
paths-ignore: | |
- '**/*.md' | |
pull_request: | |
paths-ignore: | |
- '**/*.md' | |
workflow_dispatch: | |
env: | |
XC_VERSION: ${{ '15.1' }} | |
jobs: | |
unit-tests: | |
runs-on: macos-14 | |
strategy: | |
matrix: | |
configuration: ["Debug", "Release", "ASAN", "UBSAN"] | |
steps: | |
- name: Select latest Xcode | |
run: "sudo xcode-select -s /Applications/Xcode_$XC_VERSION.app" | |
- uses: actions/checkout@v4 | |
- name: Build and run unit tests | |
run: "cd Scripts && ./run_all_unit_tests.sh ${{ matrix.configuration }}" | |
integration-tests: | |
runs-on: macos-13 # NB! need to run on amd64 since m1 doesn't support nested virtualization | |
steps: | |
- name: Select latest Xcode | |
run: "sudo xcode-select -s /Applications/Xcode_$XC_VERSION.app" | |
- name: Install deps | |
run: | | |
brew install docker | |
brew install colima | |
colima start --network-address | |
- uses: actions/checkout@v4 | |
- name: Build and run unit tests | |
env: | |
NC_SENSITIVE: ${{ secrets.NC_SENSITIVE }} | |
run: | | |
echo -n "$NC_SENSITIVE" | base64 --decode -o /Users/runner/.nc_sensitive.h | |
cd Scripts && ./run_all_integration_tests.sh | |
build-unsigned: | |
runs-on: macos-14 | |
steps: | |
- name: Select latest Xcode | |
run: "sudo xcode-select -s /Applications/Xcode_$XC_VERSION.app" | |
- name: Install deps | |
run: brew install create-dmg | |
- uses: actions/checkout@v4 | |
- name: Build and package | |
run: "cd Scripts && ./build_unsigned.sh" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: nimble-commander-unsigned | |
path: Scripts/*.dmg | |
if-no-files-found: error |