Skip to content

Commit 33bdda4

Browse files
author
Chaitanya Kumar
committed
feat: add macOS job for compile-time crash tests
1 parent 9dbb0ff commit 33bdda4

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,51 @@ jobs:
4343
SWIFT_VERSION: ${{ matrix.swift }}
4444
run: cd CompiletimeCrashTests && python test-upload.py
4545

46+
compiletime-crash-tests-macos:
47+
name: Compiletime Crash Tests Swift ${{ matrix.swift }} on macOS
48+
runs-on: macos-15
49+
strategy:
50+
matrix:
51+
swift: ["6.0.3"]
52+
steps:
53+
- uses: actions/checkout@v4
54+
- name: Set up Python
55+
uses: actions/setup-python@v5
56+
with:
57+
python-version: "3.12"
58+
- name: Verify Python version
59+
run: python --version
60+
- name: Install dependencies
61+
run: |
62+
python -m pip install "pandas~=2.2" "influxdb_client~=1.48"
63+
- name: Verify package installation
64+
run: python -c "import pandas as pd; print(pd.__version__); import influxdb_client; print(influxdb_client.__version__)"
65+
- name: Install swiftly
66+
run: |
67+
curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg && \
68+
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory && \
69+
~/.swiftly/bin/swiftly init --quiet-shell-followup && \
70+
. ~/.swiftly/env.sh && \
71+
hash -r
72+
echo "${HOME}/.swiftly/bin" >> $GITHUB_PATH
73+
- name: Install Swift ${{ matrix.swift }}
74+
run: swiftly install --use ${{ matrix.swift }}
75+
- name: Check Swift Installation
76+
run: swift --version
77+
- name: Run compiletime crash tests
78+
env:
79+
SWIFT_VERSION: ${{ matrix.swift }}
80+
run: cd CompiletimeCrashTests && ./run-compiletime-crash-tests.sh
81+
- name: Upload to Influx
82+
if: ${{ github.event_name == 'push' }}
83+
env:
84+
INFLUX_BUCKET_NAME: ${{ secrets.InfluxBucketName }}
85+
INFLUX_UPLOAD_TOKEN: ${{ secrets.InfluxUploadToken }}
86+
INFLUX_ORG_NAME: ${{ secrets.InfluxOrgName }}
87+
INFLUX_URL: ${{ secrets.InfluxURL }}
88+
SWIFT_VERSION: ${{ matrix.swift }}
89+
run: cd CompiletimeCrashTests && python test-upload.py
90+
4691
runtime-crash-tests:
4792
name: Runtime Crash Tests Swift ${{ matrix.swift }}
4893
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)