-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
991 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
common_tasks_template: &COMMON_TASKS_TEMPLATE | ||
# Location of downloaded prerequesites | ||
gcc_deps_cache: | ||
folder: gcc-deps | ||
fingerprint_script: cat gcc/BASE-VER | ||
# Typical build time is ~25 minutes, factor in twice that for waiting time | ||
timeout_in: 120m | ||
# Scripts to configure, build, and test | ||
setup_script: ./buildci.sh setup | ||
build_script: ./buildci.sh build | ||
test_script: | | ||
if [ "${RUN_TESTSUITE:-0}" = "1" ] | ||
then | ||
./buildci.sh testsuite | ||
else | ||
./buildci.sh unittests | ||
fi | ||
# Location of compressed testsuite logs | ||
testsuite_artifacts: | ||
path: logs/** | ||
|
||
environment: | ||
CIRRUS_CLONE_DEPTH: 50 | ||
|
||
# Linux | ||
task: | ||
name: Ubuntu $TASK_NAME_SUFFIX | ||
container: | ||
image: ubuntu:20.04 | ||
cpu: 8 | ||
memory: 16G | ||
environment: | ||
matrix: | ||
- TASK_NAME_SUFFIX: Testsuite | ||
RUN_TESTSUITE: 1 | ||
- TASK_NAME_SUFFIX: Unit Tests | ||
RUN_TESTSUITE: 0 | ||
<< : *COMMON_TASKS_TEMPLATE | ||
|
||
# FreeBSD | ||
task: | ||
name: FreeBSD $TASK_NAME_SUFFIX | ||
freebsd_instance: | ||
image_family: freebsd-12-2 | ||
cpu: 8 | ||
memory: 16G | ||
environment: | ||
matrix: | ||
- TASK_NAME_SUFFIX: Testsuite | ||
RUN_TESTSUITE: 1 | ||
- TASK_NAME_SUFFIX: Unit Tests | ||
RUN_TESTSUITE: 0 | ||
install_bash_script: | | ||
pkg install -y bash | ||
ln -s /usr/local/bin/bash /bin/bash | ||
<< : *COMMON_TASKS_TEMPLATE | ||
|
||
# Mac | ||
task: | ||
name: Darwin $TASK_NAME_SUFFIX | ||
osx_instance: | ||
image: catalina-xcode | ||
environment: | ||
matrix: | ||
- TASK_NAME_SUFFIX: Testsuite | ||
RUN_TESTSUITE: 1 | ||
- TASK_NAME_SUFFIX: Unit Tests | ||
RUN_TESTSUITE: 0 | ||
<< : *COMMON_TASKS_TEMPLATE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [ ibuclaw ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | ||
|
||
name: Main | ||
on: | ||
- push # branch or tag | ||
|
||
jobs: | ||
linux: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- job_name: ubuntu-x86_64 (testsuite) | ||
target: x86_64-linux-gnu | ||
- job_name: ubuntu-x86_64 (unittests) | ||
target: x86_64-linux-gnu | ||
- job_name: ubuntu-x86_64 (bootstrap) | ||
target: x86_64-linux-gnu | ||
bootstrap: enable | ||
- job_name: ubuntu-arm | ||
target: arm-linux-gnueabi | ||
- job_name: ubuntu-armhf | ||
target: arm-linux-gnueabihf | ||
- job_name: ubuntu-aarch64 | ||
target: aarch64-linux-gnu | ||
- job_name: ubuntu-mips | ||
target: mips-linux-gnu | ||
- job_name: ubuntu-mips64el | ||
target: mips64el-linux-gnuabi64 | ||
- job_name: ubuntu-mipsel | ||
target: mipsel-linux-gnu | ||
- job_name: ubuntu-powerpc64le | ||
target: powerpc64le-linux-gnu | ||
- job_name: ubuntu-systemz | ||
target: s390x-linux-gnu | ||
- job_name: ubuntu-sparc64 | ||
target: sparc64-linux-gnu | ||
name: ${{ matrix.job_name }} | ||
runs-on: ubuntu-22.04 | ||
env: | ||
GCC_CI_TARGET: ${{ matrix.target }} | ||
GCC_CI_BOOTSTRAP: ${{ matrix.bootstrap || 'disable' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 10 | ||
- name: Install dependencies | ||
run: ./buildci.sh installdeps | ||
- name: Configure gdc | ||
run: ./buildci.sh configure | ||
- name: Build gdc | ||
run: ./buildci.sh build | ||
- name: Run testsuite | ||
run: ${{ contains(matrix.job_name, 'testsuite') && './buildci.sh testsuite' || 'echo disabled' }} | ||
- name: Run unittests | ||
run: ${{ contains(matrix.job_name, 'unittests') && './buildci.sh unittests' || 'echo disabled' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
version: v1.0 | ||
name: GDC | ||
agent: | ||
machine: | ||
type: e1-standard-2 | ||
os_image: ubuntu1804 | ||
execution_time_limit: | ||
hours: 3 | ||
|
||
blocks: | ||
- name: "Ubuntu 18.04" | ||
dependencies: [] | ||
execution_time_limit: | ||
hours: 2 | ||
task: | ||
jobs: | ||
- name: "Testsuite" | ||
commands: | ||
- checkout | ||
- ./buildci.sh setup | ||
- ./buildci.sh build | ||
- ./buildci.sh testsuite | ||
- name: "Unit Tests" | ||
commands: | ||
- checkout | ||
- ./buildci.sh setup | ||
- ./buildci.sh build | ||
- ./buildci.sh unittests | ||
- name: "OSX 10.15" | ||
dependencies: [] | ||
task: | ||
agent: | ||
machine: | ||
type: a1-standard-4 | ||
os_image: macos-xcode11 | ||
jobs: | ||
- name: "Testsuite" | ||
commands: | ||
- checkout | ||
- ./buildci.sh setup | ||
- ./buildci.sh build | ||
- ./buildci.sh testsuite | ||
- name: "Unit Tests" | ||
commands: | ||
- checkout | ||
- ./buildci.sh setup | ||
- ./buildci.sh build | ||
- ./buildci.sh unittests |
Oops, something went wrong.