Skip to content

Commit

Permalink
Updated workflow versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
metaspartan committed Apr 30, 2024
1 parent 01e53e1 commit cd3c279
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Go
on:
push:
branches: [ "main" ]
tags:
- 'v*'
pull_request:
branches: [ "main" ]

jobs:
build:
Expand All @@ -15,7 +11,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.20'

Expand All @@ -32,7 +28,7 @@ jobs:

- name: Run GoReleaser
if: startsWith(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.20' # Ensure this is the version you want to use

- name: Download macOS SDK
run: |
curl -L -o MacOSX12.3.sdk.tar.xz "https://github.com/joseluisq/macosx-sdks/releases/download/12.3/MacOSX12.3.sdk.tar.xz"
sudo mkdir -p /opt/MacOSX12.3.sdk
sudo tar -xJf MacOSX12.3.sdk.tar.xz -C /opt/MacOSX12.3.sdk
curl -L -o MacOSX12.5.sdk.tar.xz "https://github.com/joseluisq/macosx-sdks/releases/download/12.5/MacOSX12.5.sdk.tar.xz"
sudo mkdir -p /opt/MacOSX12.5.sdk
sudo tar -xJf MacOSX12.5.sdk.tar.xz -C /opt/MacOSX12.5.sdk
- name: Install fyne-cross
run: go install github.com/fyne-io/fyne-cross@latest
Expand All @@ -35,10 +35,10 @@ jobs:
run: |
fyne-cross windows -arch=amd64 -icon icon.png
fyne-cross linux -arch=amd64 -icon icon.png
fyne-cross darwin -arch=arm64 -icon icon.png --macosx-sdk-path /opt/MacOSX12.3.sdk -app-id com.contextlabs.ollamark
fyne-cross darwin -arch=arm64 -icon icon.png --macosx-sdk-path /opt/MacOSX12.5.sdk -app-id com.contextlabs.ollamark
env:
FYNE_CROSS_TARGETS: windows/amd64 linux/amd64 darwin/arm64
FYNE_CROSS_DARWIN_SDK: /opt/MacOSX12.3.sdk
FYNE_CROSS_DARWIN_SDK: /opt/MacOSX12.5.sdk

- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit cd3c279

Please sign in to comment.