Skip to content

Commit

Permalink
Feature/update gh actions (#38)
Browse files Browse the repository at this point in the history
* Update all GH actions

* Update upload artifact
  • Loading branch information
jerbob92 authored Feb 9, 2024
1 parent 58c053d commit 7caa4d6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
env:
CGO_ENABLED: 0
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Build Linux
Expand All @@ -39,11 +39,11 @@ jobs:
run: |
$env:GOARCH = 'amd64'
go build -ldflags "-X 'github.com/klippa-app/pdfium-cli/version.VERSION=${{ github.event.release.name }}'" -o artifacts/pdfium-webassembly-windows-amd64 main.go
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: builds
path: artifacts
- uses: AButler/upload-release-assets@v2.0
- uses: AButler/upload-release-assets@v3.0
with:
files: 'artifacts/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -54,10 +54,10 @@ jobs:
LD_LIBRARY_PATH: "/opt/pdfium/lib"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand All @@ -73,12 +73,12 @@ jobs:
run: |
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-linux-amd64 main.go
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: builds
path: artifacts

- uses: AButler/upload-release-assets@v2.0
- uses: AButler/upload-release-assets@v3.0
with:
files: 'artifacts/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -90,10 +90,10 @@ jobs:
LD_LIBRARY_PATH: "/opt/pdfium/lib:/opt/libjpegturbo/libjpeg-turbo-3.0.2/build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand All @@ -114,12 +114,12 @@ jobs:
run: |
go build --ldflags '-linkmode external -extldflags "-fno-PIC -L/opt/libjpegturbo/libjpeg-turbo-3.0.2/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-linux-musl-amd64 main.go
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: builds
path: artifacts

- uses: AButler/upload-release-assets@v2.0
- uses: AButler/upload-release-assets@v3.0
with:
files: 'artifacts/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -130,10 +130,10 @@ jobs:
CGO_ENABLED: 1
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand All @@ -149,12 +149,12 @@ jobs:
export LD_LIBRARY_PATH="/opt/pdfium/lib"
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
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: builds
path: artifacts

- uses: AButler/upload-release-assets@v2.0
- uses: AButler/upload-release-assets@v3.0
with:
files: 'artifacts/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -164,10 +164,10 @@ jobs:
CGO_ENABLED: 1
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand All @@ -193,12 +193,12 @@ jobs:
$env:Path += ";D:\opt\pdfium\bin;C:\libjpeg-turbo-gcc64\bin"
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-windows-amd64 main.go
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: builds
path: artifacts

- uses: AButler/upload-release-assets@v2.0
- uses: AButler/upload-release-assets@v3.0
with:
files: 'artifacts/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
20 changes: 10 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
env:
CGO_ENABLED: 0
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Run tests
Expand All @@ -43,10 +43,10 @@ jobs:
LD_LIBRARY_PATH: "/opt/pdfium/lib"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand All @@ -73,10 +73,10 @@ jobs:
LD_LIBRARY_PATH: "/opt/pdfium/lib:/opt/libjpegturbo/libjpeg-turbo-3.0.2/build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand Down Expand Up @@ -106,10 +106,10 @@ jobs:
CGO_ENABLED: 1
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand All @@ -135,10 +135,10 @@ jobs:
CGO_ENABLED: 1
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand Down

0 comments on commit 7caa4d6

Please sign in to comment.