Skip to content

ARM building support #1074

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 15 commits into from
22 changes: 19 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,30 @@ before_install:
# Don't build on tags because we'll already have built the commit.
jobs:
include:
- name: "Linux build"
- name: "Linux build - x86_64"
os: linux
dist: trusty
arch: amd64
dist: precise
env: TARGET="linux" PUSH_DOCKER="true"
if: tag IS blank
script: scripts/ci.bash
- name: "Alpine build"
- name: "Alpine build - x86_64"
os: linux
arch: amd64
dist: trusty
env: TARGET="alpine"
if: tag IS blank
script: scripts/ci.bash
- name: "Linux build - ARM"
os: linux
arch: arm64
dist: xenial
env: TARGET="linux"
if: tag IS blank
script: scripts/ci.bash
- name: "Alpine build - ARM"
os: linux
arch: arm64
dist: trusty
env: TARGET="alpine"
if: tag IS blank
Expand Down
3 changes: 2 additions & 1 deletion scripts/ci.bash
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function main() {
local vscodeVersion="${VSCODE_VERSION:-}"
local ostype="${OSTYPE:-}"
local package="${PACKAGE:-}"
local target="${TARGET:-}"

if [[ -z "${codeServerVersion}" ]] ; then
>&2 echo "Must set VERSION environment variable"; exit 1
Expand All @@ -69,7 +70,7 @@ function main() {
>&2 echo "Must set VSCODE_VERSION environment variable"; exit 1
fi

if [[ "${ostype}" == "darwin"* ]]; then
if [[ "${ostype}" == "darwin"* || "${target}" == "linux" ]]; then
local-build
else
docker-build
Expand Down