From a950866c5f01def5ea6bf11aa4ea978032a53ee5 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sun, 10 Nov 2024 23:38:36 +0800 Subject: [PATCH] [DNM] Remove other workflows --- .github/workflows/compatibility_tests.yml | 94 ----------------------- .github/workflows/ios.yml | 53 ------------- .github/workflows/macos.yml | 57 -------------- .github/workflows/ubuntu.yml | 50 ------------ 4 files changed, 254 deletions(-) delete mode 100644 .github/workflows/compatibility_tests.yml delete mode 100644 .github/workflows/ios.yml delete mode 100644 .github/workflows/macos.yml delete mode 100644 .github/workflows/ubuntu.yml diff --git a/.github/workflows/compatibility_tests.yml b/.github/workflows/compatibility_tests.yml deleted file mode 100644 index b3e3ff25..00000000 --- a/.github/workflows/compatibility_tests.yml +++ /dev/null @@ -1,94 +0,0 @@ -name: Compatibility tests - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - compatibility_tests_macos: - name: Execute compatibility tests for macOS - strategy: - fail-fast: false - matrix: - os: [macos-15] - xcode-version: ["16.0"] - release: [2024] - runs-on: ${{ matrix.os }} - env: - OPENSWIFTUI_WERROR: 1 - OPENGRAPH_ATTRIBUTEGRAPH: 1 - OPENSWIFTUI_SWIFT_LOG: 0 - OPENSWIFTUI_SWIFT_CRYPTO: 0 - OPENSWIFTUI_TARGET_RELEASE: ${{ matrix.release }} - steps: - - uses: actions/checkout@v4 - - name: Setup Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: ${{ matrix.xcode-version }} - - name: Swift version - run: swift --version - - name: Run compatibility tests on OpenSwiftUI + macOS - run: | - swift test \ - --filter OpenSwiftUICompatibilityTests \ - --build-path .build-compatibility-test-debug - env: - OPENSWIFTUI_COMPATIBILITY_TEST: 0 - - name: Run compatibility tests on SwiftUI + macOS - run: | - swift test \ - --filter OpenSwiftUICompatibilityTests \ - --build-path .build-compatibility-test-debug - env: - OPENSWIFTUI_COMPATIBILITY_TEST: 1 - compatibility_tests_ios: - name: Execute compatibility tests for iOS - strategy: - fail-fast: false - matrix: - os: [macos-15] - xcode-version: ["16.0"] - release: [2024] - ios-version: ["18.0"] - include: - - ios-version: "18.0" - ios-simulator-name: "iPhone 16 Pro" - runs-on: ${{ matrix.os }} - env: - OPENSWIFTUI_WERROR: 1 - OPENGRAPH_ATTRIBUTEGRAPH: 1 - OPENSWIFTUI_SWIFT_LOG: 0 - OPENSWIFTUI_SWIFT_CRYPTO: 0 - OPENSWIFTUI_TARGET_RELEASE: ${{ matrix.release }} - steps: - - uses: actions/checkout@v4 - - name: Setup Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: ${{ matrix.xcode-version }} - - name: Swift version - run: swift --version - - name: Run compatibility tests on OpenSwiftUI + iOS - run: | - # FIXME: xcodebuild will run all test targets. - xcodebuild test \ - -scheme OpenSwiftUI \ - -configuration Debug \ - -destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \ - -skipMacroValidation \ - -skipPackagePluginValidation - env: - OPENSWIFTUI_COMPATIBILITY_TEST: 0 - - name: Run compatibility tests on SwiftUI + iOS - run: | - xcodebuild test \ - -scheme OpenSwiftUI \ - -configuration Debug \ - -destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \ - -skipMacroValidation \ - -skipPackagePluginValidation - env: - OPENSWIFTUI_COMPATIBILITY_TEST: 1 \ No newline at end of file diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml deleted file mode 100644 index 0eb2fab1..00000000 --- a/.github/workflows/ios.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: iOS - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - ios_test: - name: Execute tests on iOS - strategy: - fail-fast: false - matrix: - os: [macos-15] - xcode-version: [16.0] - release: [2021, 2024] - ios-version: ["18.0"] - include: - - ios-version: "18.0" - ios-simulator-name: "iPhone 16 Pro" - runs-on: ${{ matrix.os }} - env: - OPENSWIFTUI_WERROR: 1 - OPENGRAPH_ATTRIBUTEGRAPH: 1 - OPENSWIFTUI_COMPATIBILITY_TEST: 0 - OPENSWIFTUI_SWIFT_LOG: 0 - OPENSWIFTUI_SWIFT_CRYPTO: 0 - OPENSWIFTUI_TARGET_RELEASE: ${{ matrix.release }} - steps: - - uses: actions/checkout@v4 - - name: Setup Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: ${{ matrix.xcode-version }} - - name: Swift version - run: swift --version - - name: Build test target in debug mode - run: | - xcodebuild build \ - -scheme OpenSwiftUI \ - -configuration Debug \ - -destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \ - -skipMacroValidation \ - -skipPackagePluginValidation - - name: Run test target in debug mode - run: | - xcodebuild test \ - -scheme OpenSwiftUI \ - -configuration Debug \ - -destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \ - -skipMacroValidation \ - -skipPackagePluginValidation diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml deleted file mode 100644 index 7072e21e..00000000 --- a/.github/workflows/macos.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: macOS - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - macos_test: - name: Execute tests on macOS - strategy: - fail-fast: false - matrix: - os: [macos-15] - xcode-version: [16.0] - release: [2021, 2024] - runs-on: ${{ matrix.os }} - env: - OPENSWIFTUI_WERROR: 1 - OPENGRAPH_ATTRIBUTEGRAPH: 1 - OPENSWIFTUI_COMPATIBILITY_TEST: 0 - OPENSWIFTUI_SWIFT_LOG: 0 - OPENSWIFTUI_SWIFT_CRYPTO: 0 - OPENSWIFTUI_TARGET_RELEASE: ${{ matrix.release }} - steps: - - uses: actions/checkout@v4 - - name: Setup Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: ${{ matrix.xcode-version }} - - name: Swift version - run: swift --version - - name: Build and run tests in debug mode with coverage - run: | - swift test \ - -c debug \ - --filter OpenSwiftUITests \ - --filter OpenSwiftUICoreTests \ - --enable-code-coverage \ - --build-path .build-test-debug - xcrun llvm-cov show \ - -instr-profile=.build-test-debug/debug/codecov/default.profdata \ - .build-test-debug/debug/OpenSwiftUIPackageTests.xctest/Contents/MacOS/OpenSwiftUIPackageTests \ - > coverage.txt - - name: Build and run tests in release mode - run: | - swift test \ - -c release \ - --filter OpenSwiftUITests \ - --filter OpenSwiftUICoreTests \ - --enable-code-coverage \ - --build-path .build-test-release - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - verbose: true diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml deleted file mode 100644 index 5777f73b..00000000 --- a/.github/workflows/ubuntu.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Ubuntu - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - ubuntu_test: - name: Execute tests on Ubuntu - strategy: - fail-fast: false - matrix: - swift_version: ["6.0.1"] - runs-on: ubuntu-22.04 - env: - OPENSWIFTUI_WERROR: 1 - OPENGRAPH_ATTRIBUTEGRAPH: 0 - OPENSWIFTUI_COMPATIBILITY_TEST: 0 - OPENSWIFTUI_SWIFT_LOG: 1 - OPENSWIFTUI_SWIFT_CRYPTO: 1 - container: swift:${{ matrix.swift_version }}-jammy - steps: - - uses: actions/checkout@v4 - - name: Building and running tests in debug mode with coverage - run: | - swift test \ - -c debug \ - --filter OpenSwiftUITests \ - --filter OpenSwiftUICoreTests \ - --enable-code-coverage \ - --build-path .build-test-debug - llvm-cov show \ - -instr-profile=.build-test-debug/debug/codecov/default.profdata \ - .build-test-debug/debug/OpenSwiftUIPackageTests.xctest \ - > coverage.txt - id: debug-test - - name: Building and running tests in release mode - run: | - swift test \ - -c release \ - --filter OpenSwiftUITests \ - --filter OpenSwiftUICoreTests \ - --build-path .build-test-release - id: release-test - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - verbose: true \ No newline at end of file