diff --git a/.github/matrix.json b/.github/matrix.json index 438a90b..65a7568 100644 --- a/.github/matrix.json +++ b/.github/matrix.json @@ -1,5 +1,5 @@ { "xcode_version": [ - "15.4" + "16.4" ] } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b77f13d..0276604 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: test: name: Test needs: generate-matrix - runs-on: macOS-14 + runs-on: macOS-15 strategy: fail-fast: false matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }} @@ -67,5 +67,33 @@ jobs: run: | swift package resolve sudo swift .build/checkouts/ClangSwift/utils/make-pkgconfig.swift + - name: Build + run: swift build - name: Test run: swift test + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + path: .build/debug/sbgen + name: sbgen-${{ github.sha }}-xcode-${{ matrix.xcode_version }} + run-binary: + name: Run Binary + needs: [generate-matrix, test] + runs-on: macOS-15 + strategy: + fail-fast: false + matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }} + env: + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app/Contents/Developer + steps: + - uses: actions/checkout@v4 + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: sbgen-${{ github.sha }}-xcode-${{ matrix.xcode_version }} + - name: Run sbgen + run: | + mv .build/debug/sbgen ./sbgen + ./sbgen --help + ./sbgen /System/Applications/Music.app + ls -l