From 95aacf824a9ca867c878458861336ae20747d1f7 Mon Sep 17 00:00:00 2001 From: Sho Ikeda Date: Mon, 22 Aug 2022 16:12:22 +0900 Subject: [PATCH] Make universal binary --- .github/workflows/release.yml | 6 +++--- install-script.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40999069..b9368430 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,11 +5,11 @@ on: types: [published] env: - DEVELOPER_DIR: /Applications/Xcode_12.5.1.app + DEVELOPER_DIR: /Applications/Xcode_13.4.1.app jobs: build-release: - runs-on: macos-11 + runs-on: macos-12 steps: - uses: actions/checkout@v3 - name: Create the binary @@ -22,7 +22,7 @@ jobs: deploy-binary: needs: build-release - runs-on: macos-11 + runs-on: macos-12 steps: - uses: actions/download-artifact@v3 with: diff --git a/install-script.sh b/install-script.sh index 2f0e5775..90e17fc0 100755 --- a/install-script.sh +++ b/install-script.sh @@ -64,9 +64,9 @@ echo "OUTPUT FILE = ${OUTFILE}" cd "$SRCDIR" rm -rf .build -swift build -c release +swift build -c release --arch arm64 --arch x86_64 -cd .build/release +cd .build/apple/Products/Release echo "** Install..." cp "$(xcode-select -p)"/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/lib_InternalSwiftSyntaxParser.dylib .