Update: CI
This commit is contained in:
parent
e62cd9aa4a
commit
a97e160060
40
.github/workflows/go.yml
vendored
40
.github/workflows/go.yml
vendored
@ -47,26 +47,26 @@ jobs:
|
||||
name: myurls-linux-arm64
|
||||
path: build/myurls-linux-arm64.tar.gz
|
||||
|
||||
darwin_amd64_build:
|
||||
name: Darwin amd64 build
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Set up Go 1.18
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.18
|
||||
id: go
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
- name: Install dependencies
|
||||
run: sudo apt install gcc-aarch64-linux-gnu
|
||||
- name: Build
|
||||
run: /bin/sh -c "chmod +x scripts/build_darwin_arm64.sh && bash scripts/build_darwin_arm64.sh"
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: myurls-darwin-amd64.tar.gz
|
||||
path: build/myurls-darwin-amd64.tar.gz
|
||||
# darwin_amd64_build:
|
||||
# name: Darwin amd64 build
|
||||
# runs-on: ubuntu-20.04
|
||||
# steps:
|
||||
# - name: Set up Go 1.18
|
||||
# uses: actions/setup-go@v1
|
||||
# with:
|
||||
# go-version: 1.18
|
||||
# id: go
|
||||
# - name: Check out code into the Go module directory
|
||||
# uses: actions/checkout@v2
|
||||
# - name: Install dependencies
|
||||
# run: sudo apt install gcc-aarch64-linux-gnu
|
||||
# - name: Build
|
||||
# run: /bin/sh -c "chmod +x scripts/build_darwin_amd64.sh && bash scripts/build_darwin_amd64.sh"
|
||||
# - name: Upload
|
||||
# uses: actions/upload-artifact@v1
|
||||
# with:
|
||||
# name: myurls-darwin-amd64.tar.gz
|
||||
# path: build/myurls-darwin-amd64.tar.gz
|
||||
|
||||
windows_x64_build:
|
||||
name: Windows x64 build
|
||||
|
||||
4
Makefile
4
Makefile
@ -15,8 +15,8 @@ default:
|
||||
all:
|
||||
@echo ${BINARY_LINUX}
|
||||
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ${BINARY_LINUX} ${GOFILES}
|
||||
@echo ${BINARY_DARWIN}
|
||||
@CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ${BINARY_DARWIN} ${GOFILES}
|
||||
# @echo ${BINARY_DARWIN}
|
||||
# @CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ${BINARY_DARWIN} ${GOFILES}
|
||||
@echo ${BINARY_WINDOWS}
|
||||
@CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ${BINARY_WINDOWS} ${GOFILES}
|
||||
@echo ${BINARY_ARM64}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user