Skip to content

Commit

Permalink
Added latest ubuntu and macos version in build test matrix. Updated u…
Browse files Browse the repository at this point in the history
…buntu and golang version in pipelines. Added arm64 macos build for releases
  • Loading branch information
Magnitus- committed Aug 2, 2024
1 parent 7612802 commit 3b73bc8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, windows-2019, windows-2022, macos-12, macos-13]
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, windows-2019, windows-2022, macos-12, macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v2
- name: Build
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
name: Upload Artifacts
jobs:
upload:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v2
- name: Get the version
Expand All @@ -37,6 +37,13 @@ jobs:
zip -r macos-amd64.zip macos-amd64
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
- name: Build Macos arm64 Binary
run: |
mkdir macos-arm64
env GOOS=darwin GOARCH=arm64 go build -o macos-arm64/gogcli -ldflags="-X gogcli/cmd.Version=$VERSION"
zip -r macos-arm64.zip macos-arm64
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
- name: Build Windows adm64 Binary
run: |
mkdir windows-amd64
Expand Down Expand Up @@ -88,6 +95,15 @@ jobs:
asset_path: ./macos-amd64.zip
asset_name: macos-amd64.zip
asset_content_type: application/zip
- name: Upload Macos Arm64 Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./macos-arm64.zip
asset_name: macos-arm64.zip
asset_content_type: application/zip
- name: Upload Windows Amd64 Release Asset
uses: actions/upload-release-asset@v1
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ on: [push, pull_request]
name: Unit Tests
jobs:
test_manifest_package:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v2
- name: Test Manifest
Expand Down

0 comments on commit 3b73bc8

Please sign in to comment.