|
43 | 43 | SWIFT_VERSION: ${{ matrix.swift }} |
44 | 44 | run: cd CompiletimeCrashTests && python test-upload.py |
45 | 45 |
|
| 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 | + |
46 | 91 | runtime-crash-tests: |
47 | 92 | name: Runtime Crash Tests Swift ${{ matrix.swift }} |
48 | 93 | runs-on: ubuntu-latest |
|
0 commit comments