Skip to content

Commit

Permalink
ci: enable other platforms for test and build
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Mar 23, 2023
1 parent 9f30f6e commit 3c53a4e
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 87 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,46 +71,46 @@ jobs:
name: hostd-linux
path: bin/
retention-days: 30
# build-mac:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v3
# with:
# go-version: 'stable'
# - name: Build amd64
# env:
# CGO_ENABLED: 1
# GOOS: darwin
# GOARCH: amd64
# run: |
# go build -trimpath -o bin/macos_amd64/ -a -ldflags '-s -w' ./cmd/hostd
# - name: Build arm64
# env:
# CGO_ENABLED: 1
# GOOS: darwin
# GOARCH: arm64
# run: |
# go build -trimpath -o bin/macos_arm64/ -a -ldflags '-s -w' ./cmd/hostd
# - uses: actions/upload-artifact@v2
# with:
# name: hostd-macos
# path: bin/
# build-windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v3
# with:
# go-version: 'stable'
# - name: Build amd64
# env:
# CGO_ENABLED: 1
# GOOS: windows
# GOARCH: amd64
# run: |
# go build -trimpath -o bin/windows_amd64/ -a -ldflags '-s -w' ./cmd/hostd
# - uses: actions/upload-artifact@v2
# with:
# name: hostd-macos
# path: bin/
build-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: Build amd64
env:
CGO_ENABLED: 1
GOOS: darwin
GOARCH: amd64
run: |
go build -trimpath -o bin/macos_amd64/ -a -ldflags '-s -w' ./cmd/hostd
- name: Build arm64
env:
CGO_ENABLED: 1
GOOS: darwin
GOARCH: arm64
run: |
go build -trimpath -o bin/macos_arm64/ -a -ldflags '-s -w' ./cmd/hostd
- uses: actions/upload-artifact@v2
with:
name: hostd-macos
path: bin/
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: Build amd64
env:
CGO_ENABLED: 1
GOOS: windows
GOARCH: amd64
run: |
go build -trimpath -o bin/windows_amd64/ -a -ldflags '-s -w' ./cmd/hostd
- uses: actions/upload-artifact@v2
with:
name: hostd-windows
path: bin/
86 changes: 43 additions & 43 deletions .github/workflows/publish_testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,46 +73,46 @@ jobs:
name: hostd-testnet-linux
path: bin/
retention-days: 30
# build-mac:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v3
# with:
# go-version: 'stable'
# - name: Build amd64
# env:
# CGO_ENABLED: 1
# GOOS: darwin
# GOARCH: amd64
# run: |
# go build -trimpath -o bin/macos_amd64/ -a -ldflags '-s -w' ./cmd/hostd
# - name: Build arm64
# env:
# CGO_ENABLED: 1
# GOOS: darwin
# GOARCH: arm64
# run: |
# go build -trimpath -o bin/macos_arm64/ -a -ldflags '-s -w' ./cmd/hostd
# - uses: actions/upload-artifact@v2
# with:
# name: hostd-macos
# path: bin/
# build-windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v3
# with:
# go-version: 'stable'
# - name: Build amd64
# env:
# CGO_ENABLED: 1
# GOOS: windows
# GOARCH: amd64
# run: |
# go build -trimpath -o bin/windows_amd64/ -a -ldflags '-s -w' ./cmd/hostd
# - uses: actions/upload-artifact@v2
# with:
# name: hostd-macos
# path: bin/
build-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: Build amd64
env:
CGO_ENABLED: 1
GOOS: darwin
GOARCH: amd64
run: |
go build -trimpath -o bin/macos_amd64/ -a -ldflags '-s -w' ./cmd/hostd
- name: Build arm64
env:
CGO_ENABLED: 1
GOOS: darwin
GOARCH: arm64
run: |
go build -trimpath -o bin/macos_arm64/ -a -ldflags '-s -w' ./cmd/hostd
- uses: actions/upload-artifact@v2
with:
name: hostd-testnet-macos
path: bin/
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: Build amd64
env:
CGO_ENABLED: 1
GOOS: windows
GOARCH: amd64
run: |
go build -trimpath -o bin/windows_amd64/ -a -ldflags '-s -w' ./cmd/hostd
- uses: actions/upload-artifact@v2
with:
name: hostd-testnet-windows
path: bin/
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
contents: read
strategy:
matrix:
os: [ ubuntu-latest ] # , macos-latest, windows-latest ]
os: [ ubuntu-latest , macos-latest, windows-latest ]
go-version: [ '1.19', '1.20' ]
steps:
- name: Configure git
Expand Down

0 comments on commit 3c53a4e

Please sign in to comment.