mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
add os architecture
This commit is contained in:
parent
bd1e324bbd
commit
60212146e3
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -5,11 +5,12 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build (${{ matrix.os_name }})
|
name: Build (${{ matrix.os_name }})
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.22
|
GO_VERSION: 1.22
|
||||||
|
GOOS: ${{ matrix.os_name }}
|
||||||
|
GOARCH: ${{ matrix.arch }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -17,10 +18,13 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
os_name: linux
|
os_name: linux
|
||||||
|
arch: amd64
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
os_name: windows
|
os_name: windows
|
||||||
- os: macos-latest
|
arch: amd64
|
||||||
os_name: macos
|
# TODO macos needs universal binary!
|
||||||
|
# - os: macos-latest
|
||||||
|
# os_name: macos
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Go ${{ env.GO_VERSION }}
|
- name: Set up Go ${{ env.GO_VERSION }}
|
||||||
@ -36,7 +40,7 @@ jobs:
|
|||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: rogueserver-${{ matrix.os_name }}-${{ github.sha }}
|
name: rogueserver-${{ matrix.os_name }}-${{ matrix.arch }}-${{ github.sha }}
|
||||||
path: |
|
path: |
|
||||||
rogueserver*
|
rogueserver*
|
||||||
!rogueserver.go
|
!rogueserver.go
|
||||||
|
Loading…
x
Reference in New Issue
Block a user