mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-15 00:05:54 +08:00
Deprecate ubuntu-18.04 image and update CI build configuration.
This commit is contained in:
parent
d71c6f61f3
commit
5a6c55870e
54
.github/workflows/c-cpp.yml
vendored
54
.github/workflows/c-cpp.yml
vendored
@ -4,41 +4,43 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# compile with older gcc4.8
|
# gcc4.8 is too old and ubuntu-18.04 image is not supported in GitHub Actions anymore,
|
||||||
build-gcc48:
|
# so disable this build.
|
||||||
|
## compile with older gcc4.8
|
||||||
|
#build-gcc48:
|
||||||
|
|
||||||
runs-on: ubuntu-18.04
|
# runs-on: ubuntu-18.04
|
||||||
name: Build with gcc 4.8
|
# name: Build with gcc 4.8
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v1
|
# uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Build
|
# - name: Build
|
||||||
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-4.8 g++-4.8
|
# sudo apt-get install -y gcc-4.8 g++-4.8
|
||||||
g++-4.8 -std=c++11 -o loader_example loader_example.cc
|
# g++-4.8 -std=c++11 -o loader_example loader_example.cc
|
||||||
|
|
||||||
- name: NoexceptBuild
|
# - name: NoexceptBuild
|
||||||
run: |
|
# run: |
|
||||||
g++-4.8 -DTINYGLTF_NOEXCEPTION -std=c++11 -o loader_example loader_example.cc
|
# g++-4.8 -DTINYGLTF_NOEXCEPTION -std=c++11 -o loader_example loader_example.cc
|
||||||
|
|
||||||
- name: RapidjsonBuild
|
# - name: RapidjsonBuild
|
||||||
run: |
|
# run: |
|
||||||
git clone https://github.com/Tencent/rapidjson
|
# git clone https://github.com/Tencent/rapidjson
|
||||||
g++-4.8 -DTINYGLTF_USE_RAPIDJSON -I./rapidjson/include/rapidjson -std=c++11 -o loader_example loader_example.cc
|
# g++-4.8 -DTINYGLTF_USE_RAPIDJSON -I./rapidjson/include/rapidjson -std=c++11 -o loader_example loader_example.cc
|
||||||
|
|
||||||
# compile with mingw gcc cross
|
# compile with mingw gcc cross
|
||||||
build-mingw-cross:
|
build-mingw-cross:
|
||||||
|
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
name: Build with MinGW gcc cross
|
name: Build with MinGW gcc cross
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
@ -133,20 +135,20 @@ jobs:
|
|||||||
# Cross-compile for aarch64 linux target
|
# Cross-compile for aarch64 linux target
|
||||||
build-cross-aarch64:
|
build-cross-aarch64:
|
||||||
|
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
name: Build on cross aarch64
|
name: Build on cross aarch64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
- name: Build
|
- name: Build
|
||||||
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
|
||||||
|
|
||||||
git clone https://github.com/Tencent/rapidjson
|
git clone https://github.com/Tencent/rapidjson
|
||||||
aarch64-linux-gnu-g++-8 -DTINYGLTF_USE_RAPIDJSON -I./rapidjson/include/rapidjson -std=c++11 -g -O0 -o loader_example loader_example.cc
|
aarch64-linux-gnu-g++ -DTINYGLTF_USE_RAPIDJSON -I./rapidjson/include/rapidjson -std=c++11 -g -O0 -o loader_example loader_example.cc
|
||||||
|
|
||||||
# macOS clang
|
# macOS clang
|
||||||
build-macos:
|
build-macos:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user