Skip to content

NVFP4 for Rust & C++ #111

NVFP4 for Rust & C++

NVFP4 for Rust & C++ #111

Workflow file for this run

name: Test Swift
on:
pull_request:
branches: ["main", "main-*"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
# Temporary workaround to run Swift tests on Linux
# Based on: https://github.com/swift-actions/setup-swift/issues/591#issuecomment-1685710678
test_ubuntu_swift:
name: Swift on Linux
runs-on: ubuntu-24.04
container: swift:6.2
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Print Machine Specs
shell: bash
run: |
echo "::group::Machine Information"
uname -a || true
cat /proc/cpuinfo 2>/dev/null | head -30 || sysctl -a machdep.cpu 2>/dev/null | head -30 || wmic cpu get Name,NumberOfCores,MaxClockSpeed 2>/dev/null || true
free -h 2>/dev/null || vm_stat 2>/dev/null || systeminfo 2>/dev/null | head -20 || true
echo "::endgroup::"
- name: Test Swift
run: swift test --filter Test --parallel
test_macos_swift:
name: Swift on macOS
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set Up Swift
uses: swift-actions/setup-swift@v3
with:
swift-version: "6.1"
- name: Print Machine Specs
shell: bash
run: |
echo "::group::Machine Information"
uname -a || true
sysctl -a machdep.cpu 2>/dev/null | head -30 || true
echo "::endgroup::"
- name: Build and Test (macOS)
run: swift test --filter Test --parallel
- name: Build for iOS Simulator
run: xcodebuild build -scheme NumKong -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO