Skip to content

Commit 7782951

Browse files
committed
Remove MacOS x64 support
1 parent 0397156 commit 7782951

3 files changed

Lines changed: 2 additions & 69 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -235,41 +235,6 @@ jobs:
235235
files: 'artifacts/*'
236236
repo-token: ${{ secrets.GITHUB_TOKEN }}
237237

238-
release-cgo-macos-x64:
239-
env:
240-
CGO_ENABLED: 1
241-
runs-on: macos-13
242-
steps:
243-
- uses: actions/checkout@v4
244-
245-
- name: Set up Go
246-
uses: actions/setup-go@v5
247-
with:
248-
go-version: ${{ env.GO_VERSION }}
249-
250-
- name: Set up PDFium library and libjpeg-turbo
251-
run: |
252-
sudo curl -L https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F${{ env.PDFIUM_VERSION }}/pdfium-mac-x64.tgz -o pdfium-mac-x64.tgz && sudo mkdir /opt/pdfium && sudo tar -C /opt/pdfium -xvf pdfium-mac-x64.tgz
253-
sudo rm pdfium-mac-x64.tgz
254-
sudo cp ./.github/workflows/pdfium.pc /opt/pdfium/pdfium.pc
255-
brew install jpeg-turbo
256-
257-
- name: Build
258-
run: |
259-
export LD_LIBRARY_PATH="/opt/pdfium/lib"
260-
export PKG_CONFIG_PATH="/opt/pdfium"
261-
go build -tags pdfium_experimental,pdfium_cli_use_cgo,pdfium_use_turbojpeg -ldflags "-X 'github.com/klippa-app/pdfium-cli/version.VERSION=${{ github.event.release.name }}'" -o artifacts/pdfium-native-mac-amd64 main.go
262-
263-
- uses: actions/upload-artifact@v4
264-
with:
265-
name: builds-cgo-macos-x64
266-
path: artifacts
267-
268-
- uses: AButler/upload-release-assets@v3.0
269-
with:
270-
files: 'artifacts/*'
271-
repo-token: ${{ secrets.GITHUB_TOKEN }}
272-
273238
release-cgo-windows:
274239
env:
275240
CGO_ENABLED: 1

.github/workflows/tests.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -197,38 +197,6 @@ jobs:
197197
export PKG_CONFIG_PATH="/opt/pdfium"
198198
go build -tags pdfium_experimental,pdfium_cli_use_cgo,pdfium_use_turbojpeg main.go
199199
200-
test-cgo-macos-x64:
201-
env:
202-
CGO_ENABLED: 1
203-
runs-on: macos-13
204-
steps:
205-
- uses: actions/checkout@v4
206-
207-
- name: Set up Go
208-
uses: actions/setup-go@v5
209-
with:
210-
go-version: ${{ env.GO_VERSION }}
211-
212-
- name: Set up PDFium library and libjpeg-turbo
213-
run: |
214-
sudo curl -L https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F${{ env.PDFIUM_VERSION }}/pdfium-mac-x64.tgz -o pdfium-mac-x64.tgz && sudo mkdir /opt/pdfium && sudo tar -C /opt/pdfium -xvf pdfium-mac-x64.tgz
215-
sudo rm pdfium-mac-x64.tgz
216-
sudo cp ./.github/workflows/pdfium.pc /opt/pdfium/pdfium.pc
217-
brew install jpeg-turbo
218-
219-
- name: Test
220-
run: |
221-
export LD_LIBRARY_PATH="/opt/pdfium/lib"
222-
export PKG_CONFIG_PATH="/opt/pdfium"
223-
go test ./... -tags pdfium_experimental,pdfium_cli_use_cgo,pdfium_use_turbojpeg -exec "env DYLD_LIBRARY_PATH=/opt/pdfium/lib" -v
224-
225-
- name: Build
226-
run: |
227-
export LD_LIBRARY_PATH="/opt/pdfium/lib"
228-
export PKG_CONFIG_PATH="/opt/pdfium"
229-
go build -tags pdfium_experimental,pdfium_cli_use_cgo,pdfium_use_turbojpeg main.go
230-
231-
232200
test-cgo-windows:
233201
env:
234202
CGO_ENABLED: 1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ The following release types are available:
5555
- Native (amd64 + arm64)
5656
- Native + MUSL (amd64 + arm64)
5757
- MacOS
58-
- WebAssembly (amd64 + arm64)
59-
- Native (amd64 + arm64)
58+
- WebAssembly (arm64)
59+
- Native (arm64)
6060
- Windows
6161
- WebAssembly (amd64)
6262
- Native (amd64)

0 commit comments

Comments
 (0)