From ed3deac1568615deac5363e5024b6b80bd07a540 Mon Sep 17 00:00:00 2001 From: 417-72KI <417.72ki@gmail.com> Date: Mon, 26 Aug 2024 00:14:30 +0900 Subject: [PATCH 1/4] save executable binary as an artifact on test --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b77f13d..9d8dca2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,5 +67,12 @@ 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 }} From 005edba8177998efc06feb5d0635d863acc0ce05 Mon Sep 17 00:00:00 2001 From: 417-72KI <417.72ki@gmail.com> Date: Fri, 20 Jun 2025 23:51:28 +0900 Subject: [PATCH 2/4] run binary --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d8dca2..d3708d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,3 +76,24 @@ jobs: 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-14 + 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 From 83c23b2fe2c904232b7e1eab95f5de4cef945d71 Mon Sep 17 00:00:00 2001 From: 417-72KI <417.72ki@gmail.com> Date: Sat, 21 Jun 2025 00:02:33 +0900 Subject: [PATCH 3/4] update runner --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3708d1..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) }} @@ -79,7 +79,7 @@ jobs: run-binary: name: Run Binary needs: [generate-matrix, test] - runs-on: macOS-14 + runs-on: macOS-15 strategy: fail-fast: false matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }} From a451d0a834f3c844b56d95a66f7b099421eadf48 Mon Sep 17 00:00:00 2001 From: 417-72KI <417.72ki@gmail.com> Date: Sat, 21 Jun 2025 00:03:06 +0900 Subject: [PATCH 4/4] update Xcode --- .github/matrix.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ] }