[前][次][番号順一覧][スレッド一覧]

ruby-changes:58756

From: Jun <ko1@a...>
Date: Wed, 13 Nov 2019 09:01:55 +0900 (JST)
Subject: [ruby-changes:58756] 4bbfe1f7c4 (master): Add arm32 case on Travis.

https://git.ruby-lang.org/ruby.git/commit/?id=4bbfe1f7c4

From 4bbfe1f7c42300e2212b8f6794d5254b4db8df1c Mon Sep 17 00:00:00 2001
From: Jun Aruga <jaruga@r...>
Date: Tue, 15 Oct 2019 17:08:00 +0200
Subject: Add arm32 case on Travis.


diff --git a/.travis.yml b/.travis.yml
index aec0bd7..3acb0d4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -289,6 +289,37 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L289
           zlib1g-dev:i386 \
           zlib1g:i386
 
+  - &arm32-linux
+    name: arm32-linux
+    arch: arm64
+    # https://packages.ubuntu.com/xenial/crossbuild-essential-armhf
+    compiler: arm-linux-gnueabihf-gcc
+    env:
+      - debugflags=-g0
+      - SETARCH='setarch linux32 --verbose --32bit'
+    before_install:
+      - sudo dpkg --add-architecture armhf
+      - tool/travis_retry.sh sudo bash -c "rm -rf '${TRAVIS_ROOT}/var/lib/apt/lists/'* && exec apt-get update -yq"
+      - |-
+        tool/travis_retry.sh sudo -E apt-get $travis_apt_get_options install \
+          ccache \
+          crossbuild-essential-armhf \
+          libstdc++-5-dev:armhf \
+          libffi-dev:armhf \
+          libffi6:armhf \
+          libgdbm-dev:armhf \
+          libgdbm3:armhf \
+          libncurses5-dev:armhf \
+          libncurses5:armhf \
+          libncursesw5-dev:armhf \
+          libreadline6-dev:armhf \
+          libreadline6:armhf \
+          libssl-dev:armhf \
+          libssl1.0.0:armhf \
+          linux-libc-dev:armhf \
+          zlib1g-dev:armhf \
+          zlib1g:armhf
+
   - &pedanticism
     name: -std=c99 -pedantic
     compiler: clang
@@ -380,6 +411,7 @@ matrix: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L411
     - <<: *x86_64-linux
     - <<: *arm64-linux
     - <<: *i686-linux
+    - <<: *arm32-linux
     - <<: *pedanticism
     - <<: *assertions
     - <<: *baseruby
@@ -400,6 +432,7 @@ matrix: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L432
     - <<: *CALL_THREADED_CODE
     - <<: *NO_THREADED_CODE
   allow_failures:
+    - name: arm32-linux
     - name: -fsanitize=address
     - name: -fsanitize=memory
     - name: -fsanitize=undefined
@@ -407,6 +440,9 @@ matrix: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L440
 
 before_script:
   - date # Debugging "Permission defined" failure on darwin like https://travis-ci.org/ruby/ruby/jobs/508683759
+  - dpkg --print-architecture
+  - dpkg --print-foreign-architectures
+  - setarch --list
   - echo JOBS=${JOBS} SETARCH=${SETARCH}
   - $SETARCH uname -a
   - $SETARCH uname -r
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]