Skip to content

Commit

Permalink
enable cross-compile-server
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-s committed Oct 18, 2023
1 parent 9bfad3d commit dd0cfd3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
36 changes: 18 additions & 18 deletions .woodpecker/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@ steps:
commands:
- go mod vendor

# cross-compile-server:
# group: build
# image: *xgo_image
# pull: true
# commands:
# - apt update
# - apt install -y tree
# - make cross-compile-server
# environment:
# PLATFORMS: linux|arm64/v8;linux|amd64;windows|amd64
# TAGS: bindata sqlite sqlite_unlock_notify netgo
# XGO_VERSION: *xgo_version
# TARGZ: '1'
dummy-compile-server:
image: bash
commands:
- mkdir -p dist/server/linux/amd64 dist/server/linux/arm64 dist/server/windows/amd64 dist/agent/linux/amd64 dist/agent/linux/arm dist/agent/linux/arm64 dist/cli/linux/amd64 dist/cli/linux/arm dist/cli/linux/arm64
- touch dist/server/linux/amd64/woodpecker-server dist/server/linux/arm64/woodpecker-server dist/server/windows/amd64/woodpecker-server.exe dist/cli/linux/amd64/woodpecker-cli dist/cli/linux/arm/woodpecker-cli dist/cli/linux/arm64/woodpecker-cli dist/agent/linux/amd64/woodpecker-agent dist/agent/linux/arm/woodpecker-agent dist/agent/linux/arm64/woodpecker-agent dist/woodpecker-server_linux_amd64.tar.gz dist/woodpecker-server_linux_arm64.tar.gz dist/woodpecker-server_windows_amd64.tar.gz
cross-compile-server:
group: build
image: *xgo_image
pull: true
commands:
- apt update
- apt install -y tree
- make cross-compile-server
environment:
PLATFORMS: linux|arm64/v8;linux|amd64;windows|amd64
TAGS: bindata sqlite sqlite_unlock_notify netgo
XGO_VERSION: *xgo_version
TARGZ: '1'
# dummy-compile-server:
# image: bash
# commands:
# - mkdir -p dist/server/linux/amd64 dist/server/linux/arm64 dist/server/windows/amd64 dist/agent/linux/amd64 dist/agent/linux/arm dist/agent/linux/arm64 dist/cli/linux/amd64 dist/cli/linux/arm dist/cli/linux/arm64
# - touch dist/server/linux/amd64/woodpecker-server dist/server/linux/arm64/woodpecker-server dist/server/windows/amd64/woodpecker-server.exe dist/cli/linux/amd64/woodpecker-cli dist/cli/linux/arm/woodpecker-cli dist/cli/linux/arm64/woodpecker-cli dist/agent/linux/amd64/woodpecker-agent dist/agent/linux/arm/woodpecker-agent dist/agent/linux/arm64/woodpecker-agent dist/woodpecker-server_linux_amd64.tar.gz dist/woodpecker-server_linux_arm64.tar.gz dist/woodpecker-server_windows_amd64.tar.gz

build-agent:
group: build
Expand Down
38 changes: 19 additions & 19 deletions .woodpecker/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,25 @@ steps:
- pnpm build

# TODO: have an xgo arm image
# cross-compile-server-preview:
# image: *xgo_image
# pull: true
# commands:
# - apt update
# - apt install -y tree
# - make cross-compile-server
# environment:
# PLATFORMS: linux|amd64
# TAGS: bindata sqlite sqlite_unlock_notify netgo
# XGO_VERSION: *xgo_version
# when:
# event: pull_request
dummy-compile-server:
image: bash
commands:
- mkdir -p dist/server/linux/amd64
- echo 'echo binary' > dist/server/linux/amd64/woodpecker-server
- chmod +x dist/server/linux/amd64/woodpecker-server
cross-compile-server-preview:
image: *xgo_image
pull: true
commands:
- apt update
- apt install -y tree
- make cross-compile-server
environment:
PLATFORMS: linux|amd64
TAGS: bindata sqlite sqlite_unlock_notify netgo
XGO_VERSION: *xgo_version
when:
event: pull_request
# dummy-compile-server:
# image: bash
# commands:
# - mkdir -p dist/server/linux/amd64
# - echo 'echo binary' > dist/server/linux/amd64/woodpecker-server
# - chmod +x dist/server/linux/amd64/woodpecker-server

publish-server-preview:
image: woodpeckerci/plugin-docker-buildx:2.1.0
Expand Down

0 comments on commit dd0cfd3

Please sign in to comment.