Skip to content

Commit 33d7186

Browse files
authored
Merge pull request #145 from github/rzhade3/fix-workflows
Upgrade Actions workflows
2 parents d016478 + 253d010 commit 33d7186

3 files changed

Lines changed: 16 additions & 32 deletions

File tree

.github/workflows/build-binaries.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
on: [push, pull_request]
22
name: Build binaries
3+
permissions:
4+
contents: read
5+
packages: write
36
jobs:
47
build-macos:
58
strategy:
69
matrix:
7-
go-version: ["1.17"]
10+
go-version: ["1.23"]
811
os: [macos-latest]
912
runs-on: ${{ matrix.os }}
1013
env:
@@ -41,16 +44,16 @@ jobs:
4144
name: build
4245
path: build/
4346
- name: Upload macOS files to the release
44-
# Pinned hash from https://github.com/softprops/action-gh-release/releases/tag/v0.1.12
45-
uses: softprops/action-gh-release@2d72d869af3bf23602f9593a1e3fd739b80ac1eb
47+
# Pinned hash from https://github.com/softprops/action-gh-release/releases/tag/v2.0.8
48+
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191
4649
if: startsWith(github.ref, 'refs/tags/v')
4750
with:
4851
files: |
4952
build/macOS/smimesign-macos-${{ env.GIT_VERSION }}.tgz
5053
build-windows:
5154
strategy:
5255
matrix:
53-
go-version: ["1.17"]
56+
go-version: ["1.23"]
5457
os: [windows-latest]
5558
runs-on: ${{ matrix.os }}
5659
env:
@@ -88,8 +91,8 @@ jobs:
8891
run: |
8992
GOARCH=amd64 go build -o "build/amd64/smimesign.exe" -ldflags "-X main.versionString=${{ env.GIT_VERSION }}"
9093
- name: Switch MinGW to x86
91-
# Pinned hash from https://github.com/egor-tensin/setup-mingw/releases/tag/v2
92-
uses: egor-tensin/setup-mingw@f3c5d799aadf8fa230ac67a422b01dd085bbc96b
94+
# Pinned hash from https://github.com/egor-tensin/setup-mingw/releases/tag/v2.2.0
95+
uses: egor-tensin/setup-mingw@84c781b557efd538dec66bde06988d81cd3138cf
9396
with:
9497
platform: x86
9598
- name: Build 386
@@ -126,8 +129,8 @@ jobs:
126129
name: build
127130
path: build/
128131
- name: Upload Windows files to the release
129-
# Pinned hash from https://github.com/softprops/action-gh-release/releases/tag/v0.1.12
130-
uses: softprops/action-gh-release@2d72d869af3bf23602f9593a1e3fd739b80ac1eb
132+
# Pinned hash from https://github.com/softprops/action-gh-release/releases/tag/v2.0.8
133+
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191
131134
if: startsWith(github.ref, 'refs/tags/v')
132135
with:
133136
files: |
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
on: [push, pull_request]
2-
name: Test macOS
2+
name: Test
3+
permissions:
4+
contents: read
35
jobs:
46
test:
57
strategy:
68
matrix:
7-
go-version: ["1.14", "1.x"]
8-
os: [macos-latest]
9+
go-version: ["1.22", "1.x"]
10+
os: [macos-latest, windows-latest]
911
runs-on: ${{ matrix.os }}
1012
env:
1113
CGO_ENABLED: 1

.github/workflows/test-windows-go.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)