mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Disable gcc4.9 and gcc5 build.
Use version-less gcc-aarch64
This commit is contained in:
71
.github/workflows/linux_ci.yml
vendored
71
.github/workflows/linux_ci.yml
vendored
@@ -8,44 +8,45 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# compile with oldest gcc4.9 which supports (most of)C++14
|
# Disable gcc4.9 and gcc5 since its too obsolete and failed to do apt-get
|
||||||
build-gcc49:
|
## compile with oldest gcc4.9 which supports (most of)C++14
|
||||||
|
#build-gcc49:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
name: Build with gcc 4.9
|
# name: Build with gcc 4.9
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v1
|
# uses: actions/checkout@v1
|
||||||
- name: CmakeAndBuild
|
# - name: CmakeAndBuild
|
||||||
run: |
|
# run: |
|
||||||
sudo apt-add-repository -y 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial main'
|
# sudo apt-add-repository -y 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial main'
|
||||||
sudo apt-add-repository -y 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe'
|
# sudo apt-add-repository -y 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe'
|
||||||
sudo apt-get update
|
# sudo apt-get update
|
||||||
sudo apt-get install -y build-essential
|
# sudo apt-get install -y build-essential
|
||||||
sudo apt-get install -y gcc-4.9 g++-4.9 gcc-4.9-multilib
|
# sudo apt-get install -y gcc-4.9 g++-4.9 gcc-4.9-multilib
|
||||||
./scripts/bootstrap-gcc-49.sh
|
# ./scripts/bootstrap-gcc-49.sh
|
||||||
cd build-gcc49
|
# cd build-gcc49
|
||||||
make VERBOSE=1
|
# make VERBOSE=1
|
||||||
|
|
||||||
# compile with older gcc5
|
## compile with older gcc5
|
||||||
build-gcc5:
|
#build-gcc5:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
name: Build with gcc 5
|
# name: Build with gcc 5
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v1
|
# uses: actions/checkout@v1
|
||||||
- name: CmakeAndBuild
|
# - name: CmakeAndBuild
|
||||||
run: |
|
# run: |
|
||||||
sudo apt-add-repository -y 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial main'
|
# sudo apt-add-repository -y 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial main'
|
||||||
sudo apt-add-repository -y 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe'
|
# sudo apt-add-repository -y 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe'
|
||||||
sudo apt-get update
|
# sudo apt-get update
|
||||||
sudo apt-get install -y build-essential
|
# sudo apt-get install -y build-essential
|
||||||
sudo apt-get install -y gcc-5 g++-5
|
# sudo apt-get install -y gcc-5 g++-5
|
||||||
./scripts/bootstrap-gcc-5.sh
|
# ./scripts/bootstrap-gcc-5.sh
|
||||||
cd build-gcc5
|
# cd build-gcc5
|
||||||
make VERBOSE=1
|
# make VERBOSE=1
|
||||||
|
|
||||||
# Cross-compile for aarch64 linux target
|
# Cross-compile for aarch64 linux target
|
||||||
build-cross-aarch64:
|
build-cross-aarch64:
|
||||||
@@ -60,7 +61,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y build-essential
|
sudo apt-get install -y build-essential
|
||||||
sudo apt-get install -y gcc-8-aarch64-linux-gnu g++-8-aarch64-linux-gnu
|
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
||||||
./scripts/bootstrap-gcc-aarch64-cross.sh
|
./scripts/bootstrap-gcc-aarch64-cross.sh
|
||||||
cd build-cross
|
cd build-cross
|
||||||
make VERBOSE=1
|
make VERBOSE=1
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ set(CMAKE_C_COMPILER_TARGET aarch64-linux-gnu)
|
|||||||
set(CMAKE_FIND_ROOT_PATH /usr/aarch64-linux-gnu/)
|
set(CMAKE_FIND_ROOT_PATH /usr/aarch64-linux-gnu/)
|
||||||
|
|
||||||
# Sync with GitHub Actions config
|
# Sync with GitHub Actions config
|
||||||
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc-8)
|
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)
|
||||||
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++-8)
|
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
|
|||||||
Reference in New Issue
Block a user