From 8706200ed303730a9c45767de18840d97013a1be Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Fri, 4 Apr 2025 13:22:26 +0300 Subject: [PATCH 01/19] Add CI for the CLI target --- .github/workflows/swift.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..7501f73 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,28 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Swift + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + swift: ["6.0.3", "6.1"] + steps: + - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf + with: + swift-version: ${{ matrix.swift }} + - uses: actions/checkout@v4 + - name: Build CLI + run: swift build --target edge -v + - name: Run tests + run: swift test -v From 7ee0f63d9a0423c91b98fae835f899fcac56b957 Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Fri, 4 Apr 2025 13:24:15 +0300 Subject: [PATCH 02/19] fix syntax error --- .github/workflows/swift.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 7501f73..f072416 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -19,8 +19,8 @@ jobs: swift: ["6.0.3", "6.1"] steps: - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf - with: - swift-version: ${{ matrix.swift }} + with: + swift-version: ${{ matrix.swift }} - uses: actions/checkout@v4 - name: Build CLI run: swift build --target edge -v From ba74f3075c2ff91dedfa6a3c13b6185a294cdf4c Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Fri, 4 Apr 2025 13:32:55 +0300 Subject: [PATCH 03/19] stick to 6.0.3 since 6.1 is not available in the gh action yet --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index f072416..4632464 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - swift: ["6.0.3", "6.1"] + swift: ["6.0.3"] steps: - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf with: From 03460497a0a746b9fb982e14748da1aa480d07ab Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Fri, 4 Apr 2025 13:34:22 +0300 Subject: [PATCH 04/19] ubuntu 22.04 --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 4632464..3088017 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -15,7 +15,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-22.04, macos-latest] swift: ["6.0.3"] steps: - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf From 2207f52649e4464ace2ad75547f92fa0fcb2e2da Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Fri, 4 Apr 2025 13:35:18 +0300 Subject: [PATCH 05/19] no pin in setup-swift --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 3088017..38bf033 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -18,7 +18,7 @@ jobs: os: [ubuntu-22.04, macos-latest] swift: ["6.0.3"] steps: - - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf + - uses: swift-actions/setup-swift with: swift-version: ${{ matrix.swift }} - uses: actions/checkout@v4 From d39bbe4f53e709fc6e0dab28840bcb9f12ae87f4 Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Fri, 4 Apr 2025 13:37:06 +0300 Subject: [PATCH 06/19] swift-setup 2.2.0 --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 38bf033..1e63295 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -18,7 +18,7 @@ jobs: os: [ubuntu-22.04, macos-latest] swift: ["6.0.3"] steps: - - uses: swift-actions/setup-swift + - uses: swift-actions/setup-swift@v2.2.0 with: swift-version: ${{ matrix.swift }} - uses: actions/checkout@v4 From 7547e5d795471256df23981eb7275a5c0d6f2b83 Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Fri, 4 Apr 2025 13:38:54 +0300 Subject: [PATCH 07/19] swift-setup with 6.0.3 --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 1e63295..8123f90 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -18,7 +18,7 @@ jobs: os: [ubuntu-22.04, macos-latest] swift: ["6.0.3"] steps: - - uses: swift-actions/setup-swift@v2.2.0 + - uses: swift-actions/setup-swift@96e1dd40c7aa863eafac5979fd597972980a64c7 with: swift-version: ${{ matrix.swift }} - uses: actions/checkout@v4 From 199e0eee6263e03064101d6e775ea1548383062e Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 10:54:51 +0300 Subject: [PATCH 08/19] Removing tests run for now --- .github/workflows/swift.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 8123f90..eae3e0e 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -24,5 +24,4 @@ jobs: - uses: actions/checkout@v4 - name: Build CLI run: swift build --target edge -v - - name: Run tests - run: swift test -v + From befcd9c4091e4d7da71b3742434ee28fb591cc87 Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 11:01:01 +0300 Subject: [PATCH 09/19] swift 6.1 -> 6.0.3 --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 698ccff..ecbccf7 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 6.1 +// swift-tools-version: 6.0.3 import PackageDescription let package = Package( From 4a36d0ab859a37a3b1618a2800266a557dfc7257 Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 11:17:22 +0300 Subject: [PATCH 10/19] update edge-agent-common dep revision --- Package.resolved | 6 +++--- Package.swift | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Package.resolved b/Package.resolved index 5d616db..b5f7fae 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,12 +1,12 @@ { - "originHash" : "3fdea633ce1bf54ea9439217287fd68d6551bf835fa2286e18d142cd9d8865c0", + "originHash" : "9bb5297beb2213db32c028dbb6feb3281b08acb473c47cf8509b42150dfbe05b", "pins" : [ { "identity" : "edge-agent-common", "kind" : "remoteSourceControl", - "location" : "https://github.com/apache-edge/edge-agent-common", + "location" : "https://github.com/apache-edge/edge-agent-common.git", "state" : { - "revision" : "952035635c630d366dfbcff04af1934c7c051f23" + "revision" : "296c7a7781621d2cc8c81f6bbb5a4b48bc030e52" } }, { diff --git a/Package.swift b/Package.swift index ecbccf7..04a8f3b 100644 --- a/Package.swift +++ b/Package.swift @@ -17,7 +17,7 @@ let package = Package( .package(url: "https://github.com/apple/swift-crypto.git", from: "3.12.2"), .package( url: "https://github.com/apache-edge/edge-agent-common.git", - revision: "952035635c630d366dfbcff04af1934c7c051f23" + revision: "296c7a7781621d2cc8c81f6bbb5a4b48bc030e52" ), ], targets: [ From 8f96e2238c22fc3c23549b10ecbcc7d3609cc68b Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 11:32:23 +0300 Subject: [PATCH 11/19] add artifact upload --- .github/workflows/swift.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index eae3e0e..253fc80 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -24,4 +24,14 @@ jobs: - uses: actions/checkout@v4 - name: Build CLI run: swift build --target edge -v + - name: Get binary path + id: get-binary + run: | + echo "BINARY_PATH=$(swift build --show-bin-path)/edge" >> $GITHUB_ENV + - name: Upload binary artifact + uses: actions/upload-artifact@v3 + with: + name: edge-cli-${{ matrix.os }} + path: ${{ env.BINARY_PATH }} + retention-days: 14 From 4a8047ca9bc54583a1b572402d0c03c2852c6bcb Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 11:40:52 +0300 Subject: [PATCH 12/19] fix upload artifact and add download info --- .github/workflows/swift.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 253fc80..cdcf381 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -29,9 +29,15 @@ jobs: run: | echo "BINARY_PATH=$(swift build --show-bin-path)/edge" >> $GITHUB_ENV - name: Upload binary artifact - uses: actions/upload-artifact@v3 + id: upload-artifact + uses: actions/upload-artifact@v4 with: name: edge-cli-${{ matrix.os }} path: ${{ env.BINARY_PATH }} retention-days: 14 + if-no-files-found: error + - name: Output download info + run: | + echo "::notice::Binary artifact uploaded with ID: ${{ steps.upload-artifact.outputs.artifact-id }}" + echo "::notice::Download URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" From ff7f4182bd26cecd9ec1c101fcecd79995f08ab7 Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 11:51:15 +0300 Subject: [PATCH 13/19] add verification step --- .github/workflows/swift.yml | 38 ++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index cdcf381..36b36c8 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -23,11 +23,43 @@ jobs: swift-version: ${{ matrix.swift }} - uses: actions/checkout@v4 - name: Build CLI - run: swift build --target edge -v - - name: Get binary path + run: swift build --target edge + - name: Find binary path id: get-binary run: | - echo "BINARY_PATH=$(swift build --show-bin-path)/edge" >> $GITHUB_ENV + BIN_PATH=$(swift build --show-bin-path) + echo "Build directory contents:" + ls -la $BIN_PATH + + if [ -f "$BIN_PATH/edge" ]; then + echo "BINARY_PATH=$BIN_PATH/edge" >> $GITHUB_ENV + echo "Binary found at $BIN_PATH/edge" + else + echo "Searching for binary recursively in $BIN_PATH" + FOUND_PATH=$(find $BIN_PATH -name "edge" -type f | head -n 1) + if [ -n "$FOUND_PATH" ]; then + echo "BINARY_PATH=$FOUND_PATH" >> $GITHUB_ENV + echo "Binary found at $FOUND_PATH" + else + echo "::error::Binary not found in build directory" + exit 1 + fi + fi + - name: Verify binary exists + run: | + if [ ! -f "${{ env.BINARY_PATH }}" ]; then + echo "::error::Binary not found at ${{ env.BINARY_PATH }}" + exit 1 + fi + echo "Binary exists at ${{ env.BINARY_PATH }}" + + # Check if binary is executable + if [ -x "${{ env.BINARY_PATH }}" ]; then + echo "Binary is executable" + else + echo "Making binary executable" + chmod +x "${{ env.BINARY_PATH }}" + fi - name: Upload binary artifact id: upload-artifact uses: actions/upload-artifact@v4 From aa3fba0cb0d9b606fd29998c62af5c6b9be16336 Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 13:48:30 +0300 Subject: [PATCH 14/19] fix build command --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 36b36c8..5bdaa62 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -23,7 +23,7 @@ jobs: swift-version: ${{ matrix.swift }} - uses: actions/checkout@v4 - name: Build CLI - run: swift build --target edge + run: swift build --target EdgeCLI - name: Find binary path id: get-binary run: | From 032c8ee43da887e6fbb69fb1249efb54e24abe4d Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 13:51:27 +0300 Subject: [PATCH 15/19] Update swift.yml --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 5bdaa62..04b8d50 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -23,7 +23,7 @@ jobs: swift-version: ${{ matrix.swift }} - uses: actions/checkout@v4 - name: Build CLI - run: swift build --target EdgeCLI + run: swift build - name: Find binary path id: get-binary run: | From 541a6b251c9c36994bd7ccfef178ea3a723afff5 Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 13:57:10 +0300 Subject: [PATCH 16/19] clean up and more specific build command --- .github/workflows/swift.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 5bdaa62..2ddadd8 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -23,13 +23,12 @@ jobs: swift-version: ${{ matrix.swift }} - uses: actions/checkout@v4 - name: Build CLI - run: swift build --target EdgeCLI + run: swift build --product edge - name: Find binary path id: get-binary run: | BIN_PATH=$(swift build --show-bin-path) echo "Build directory contents:" - ls -la $BIN_PATH if [ -f "$BIN_PATH/edge" ]; then echo "BINARY_PATH=$BIN_PATH/edge" >> $GITHUB_ENV From 301d1e523af24975e5c76020072b5d718396cec3 Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 14:07:37 +0300 Subject: [PATCH 17/19] try using the 6.1 container --- .github/workflows/swift.yml | 2 + .github/workflows/swift.yml.orig | 78 ++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 .github/workflows/swift.yml.orig diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 2ddadd8..94ebc6b 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -11,6 +11,8 @@ on: jobs: build: + container: + image: swift:6.1.0 name: Swift ${{ matrix.swift }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: diff --git a/.github/workflows/swift.yml.orig b/.github/workflows/swift.yml.orig new file mode 100644 index 0000000..1fcaedd --- /dev/null +++ b/.github/workflows/swift.yml.orig @@ -0,0 +1,78 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Swift + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-22.04, macos-latest] + swift: ["6.0.3"] + steps: + - uses: swift-actions/setup-swift@96e1dd40c7aa863eafac5979fd597972980a64c7 + with: + swift-version: ${{ matrix.swift }} + - uses: actions/checkout@v4 + - name: Build CLI +<<<<<<< HEAD + run: swift build --product edge +======= + run: swift build +>>>>>>> 032c8ee43da887e6fbb69fb1249efb54e24abe4d + - name: Find binary path + id: get-binary + run: | + BIN_PATH=$(swift build --show-bin-path) + echo "Build directory contents:" + + if [ -f "$BIN_PATH/edge" ]; then + echo "BINARY_PATH=$BIN_PATH/edge" >> $GITHUB_ENV + echo "Binary found at $BIN_PATH/edge" + else + echo "Searching for binary recursively in $BIN_PATH" + FOUND_PATH=$(find $BIN_PATH -name "edge" -type f | head -n 1) + if [ -n "$FOUND_PATH" ]; then + echo "BINARY_PATH=$FOUND_PATH" >> $GITHUB_ENV + echo "Binary found at $FOUND_PATH" + else + echo "::error::Binary not found in build directory" + exit 1 + fi + fi + - name: Verify binary exists + run: | + if [ ! -f "${{ env.BINARY_PATH }}" ]; then + echo "::error::Binary not found at ${{ env.BINARY_PATH }}" + exit 1 + fi + echo "Binary exists at ${{ env.BINARY_PATH }}" + + # Check if binary is executable + if [ -x "${{ env.BINARY_PATH }}" ]; then + echo "Binary is executable" + else + echo "Making binary executable" + chmod +x "${{ env.BINARY_PATH }}" + fi + - name: Upload binary artifact + id: upload-artifact + uses: actions/upload-artifact@v4 + with: + name: edge-cli-${{ matrix.os }} + path: ${{ env.BINARY_PATH }} + retention-days: 14 + if-no-files-found: error + - name: Output download info + run: | + echo "::notice::Binary artifact uploaded with ID: ${{ steps.upload-artifact.outputs.artifact-id }}" + echo "::notice::Download URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + From 12386acf1d10ade1fe8e9713995634f5729c81d6 Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 18:01:08 +0300 Subject: [PATCH 18/19] remove contanier for gh action and remove orig file --- .github/workflows/swift.yml | 4 +- .github/workflows/swift.yml.orig | 78 -------------------------------- 2 files changed, 1 insertion(+), 81 deletions(-) delete mode 100644 .github/workflows/swift.yml.orig diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 94ebc6b..6e7a13e 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -11,8 +11,6 @@ on: jobs: build: - container: - image: swift:6.1.0 name: Swift ${{ matrix.swift }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -25,7 +23,7 @@ jobs: swift-version: ${{ matrix.swift }} - uses: actions/checkout@v4 - name: Build CLI - run: swift build --product edge + run: swift build --product edge --configuration release - name: Find binary path id: get-binary run: | diff --git a/.github/workflows/swift.yml.orig b/.github/workflows/swift.yml.orig deleted file mode 100644 index 1fcaedd..0000000 --- a/.github/workflows/swift.yml.orig +++ /dev/null @@ -1,78 +0,0 @@ -# This workflow will build a Swift project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift - -name: Swift - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - name: Swift ${{ matrix.swift }} on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-22.04, macos-latest] - swift: ["6.0.3"] - steps: - - uses: swift-actions/setup-swift@96e1dd40c7aa863eafac5979fd597972980a64c7 - with: - swift-version: ${{ matrix.swift }} - - uses: actions/checkout@v4 - - name: Build CLI -<<<<<<< HEAD - run: swift build --product edge -======= - run: swift build ->>>>>>> 032c8ee43da887e6fbb69fb1249efb54e24abe4d - - name: Find binary path - id: get-binary - run: | - BIN_PATH=$(swift build --show-bin-path) - echo "Build directory contents:" - - if [ -f "$BIN_PATH/edge" ]; then - echo "BINARY_PATH=$BIN_PATH/edge" >> $GITHUB_ENV - echo "Binary found at $BIN_PATH/edge" - else - echo "Searching for binary recursively in $BIN_PATH" - FOUND_PATH=$(find $BIN_PATH -name "edge" -type f | head -n 1) - if [ -n "$FOUND_PATH" ]; then - echo "BINARY_PATH=$FOUND_PATH" >> $GITHUB_ENV - echo "Binary found at $FOUND_PATH" - else - echo "::error::Binary not found in build directory" - exit 1 - fi - fi - - name: Verify binary exists - run: | - if [ ! -f "${{ env.BINARY_PATH }}" ]; then - echo "::error::Binary not found at ${{ env.BINARY_PATH }}" - exit 1 - fi - echo "Binary exists at ${{ env.BINARY_PATH }}" - - # Check if binary is executable - if [ -x "${{ env.BINARY_PATH }}" ]; then - echo "Binary is executable" - else - echo "Making binary executable" - chmod +x "${{ env.BINARY_PATH }}" - fi - - name: Upload binary artifact - id: upload-artifact - uses: actions/upload-artifact@v4 - with: - name: edge-cli-${{ matrix.os }} - path: ${{ env.BINARY_PATH }} - retention-days: 14 - if-no-files-found: error - - name: Output download info - run: | - echo "::notice::Binary artifact uploaded with ID: ${{ steps.upload-artifact.outputs.artifact-id }}" - echo "::notice::Download URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - From c40e3977205c35d1f6387e68db8041096fcb55f2 Mon Sep 17 00:00:00 2001 From: Mihai Chiorean Date: Sun, 6 Apr 2025 18:16:27 +0300 Subject: [PATCH 19/19] fix binpath resolution --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 6e7a13e..122d7f3 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -27,7 +27,7 @@ jobs: - name: Find binary path id: get-binary run: | - BIN_PATH=$(swift build --show-bin-path) + BIN_PATH=$(swift build --show-bin-path --configuration release) echo "Build directory contents:" if [ -f "$BIN_PATH/edge" ]; then