Update Travis CI building to test build on ARM64 (Issue #95) (#177)

* Update to build on ARM64 
* Update documentation regarding building on ARM64 platforms
This commit is contained in:
abraunegg 2018-10-04 09:22:49 +10:00 committed by GitHub
parent 583075fb87
commit 8323d05230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 9 deletions

View File

@ -49,10 +49,16 @@ function setup_arm64_chroot {
# Host dependencies
sudo apt-get install -qq -y ${HOST_DEPENDENCIES}
# Download LDC compiler
wget https://github.com/ldc-developers/ldc/releases/download/v1.10.0/ldc2-1.10.0-linux-armhf.tar.xz
tar -xf ldc2-1.10.0-linux-armhf.tar.xz
mv ldc2-1.10.0-linux-armhf dlang-${ARCH}
rm -rf ldc2-1.10.0-linux-armhf.tar.xz
wget https://github.com/ldc-developers/ldc/releases/download/v1.11.0/ldc2-1.11.0-linux-aarch64.tar.xz
tar -xf ldc2-1.11.0-linux-aarch64.tar.xz
mv ldc2-1.11.0-linux-aarch64 dlang-${ARCH}
rm -rf ldc2-1.11.0-linux-aarch64.tar.xz
# ARM64 qemu-debootstrap needs to be 1.0.78, Trusty is 1.0.59
sudo echo "deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse" >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -t xenial debootstrap
# Create chrooted environment
sudo mkdir ${CHROOT_DIR}
sudo qemu-debootstrap --arch=${CHROOT_ARCH64} ${VERSION64} ${CHROOT_DIR} ${DEBIAN_MIRROR}

View File

@ -11,7 +11,7 @@ env:
- ARCH=x64
- ARCH=x32
- ARCH=arm32
# - ARCH=arm64
- ARCH=arm64
script:
- "bash -ex .travis-ci.sh"

View File

@ -77,7 +77,7 @@ curl -fsS https://dlang.org/install.sh | bash -s dmd
sudo pacman -S curl sqlite dmd
```
### Dependencies: Raspbian (ARM)
### Dependencies: Raspbian (ARMHF)
```
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libsqlite3-dev
@ -85,13 +85,20 @@ wget https://github.com/ldc-developers/ldc/releases/download/v1.10.0/ldc2-1.10.0
tar -xvf ldc2-1.10.0-linux-armhf.tar.xz
```
### Dependencies: Debian (ARM64)
```
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libsqlite3-dev
wget https://github.com/ldc-developers/ldc/releases/download/v1.11.0/ldc2-1.11.0-linux-aarch64.tar.xz
tar -xvf ldc2-1.11.0-linux-aarch64.tar.xz
```
### Dependencies: Gentoo
```
sudo emerge app-portage/layman
sudo layman -a dlang
Add ebuild from contrib/gentoo to a local overlay to use.
```
Add ebuild from contrib/gentoo to a local overlay to use.
### Dependencies: OpenSuSE Leap 15.0
```
@ -127,7 +134,7 @@ make DC=/usr/bin/ldmd2
sudo make install
```
#### ARM Architecture
#### ARMHF Architecture
```
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
@ -135,6 +142,14 @@ make DC=~/ldc2-1.10.0-linux-armhf/bin/ldmd2
sudo make install
```
#### ARM64 Architecture
```
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
make DC=~/ldc2-1.11.0-linux-aarch64/bin/ldmd2
sudo make install
```
## Using the client
### First run :zap:
After installing the application you must run it at least once from the terminal to authorize it.