Skip to content

Commit ea88a71

Browse files
ibuclawReposync Bot
authored and
Reposync Bot
committed
Add README, FUNDING, and CI files
1 parent 7c52430 commit ea88a71

File tree

7 files changed

+991
-0
lines changed

7 files changed

+991
-0
lines changed

.cirrus.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
common_tasks_template: &COMMON_TASKS_TEMPLATE
2+
# Location of downloaded prerequesites
3+
gcc_deps_cache:
4+
folder: gcc-deps
5+
fingerprint_script: cat gcc/BASE-VER
6+
# Typical build time is ~25 minutes, factor in twice that for waiting time
7+
timeout_in: 120m
8+
# Scripts to configure, build, and test
9+
setup_script: ./buildci.sh setup
10+
build_script: ./buildci.sh build
11+
test_script: |
12+
if [ "${RUN_TESTSUITE:-0}" = "1" ]
13+
then
14+
./buildci.sh testsuite
15+
else
16+
./buildci.sh unittests
17+
fi
18+
# Location of compressed testsuite logs
19+
testsuite_artifacts:
20+
path: logs/**
21+
22+
environment:
23+
CIRRUS_CLONE_DEPTH: 50
24+
25+
# Linux
26+
task:
27+
name: Ubuntu $TASK_NAME_SUFFIX
28+
container:
29+
image: ubuntu:20.04
30+
cpu: 8
31+
memory: 16G
32+
environment:
33+
matrix:
34+
- TASK_NAME_SUFFIX: Testsuite
35+
RUN_TESTSUITE: 1
36+
- TASK_NAME_SUFFIX: Unit Tests
37+
RUN_TESTSUITE: 0
38+
<< : *COMMON_TASKS_TEMPLATE
39+
40+
# FreeBSD
41+
task:
42+
name: FreeBSD $TASK_NAME_SUFFIX
43+
freebsd_instance:
44+
image_family: freebsd-12-2
45+
cpu: 8
46+
memory: 16G
47+
environment:
48+
matrix:
49+
- TASK_NAME_SUFFIX: Testsuite
50+
RUN_TESTSUITE: 1
51+
- TASK_NAME_SUFFIX: Unit Tests
52+
RUN_TESTSUITE: 0
53+
install_bash_script: |
54+
pkg install -y bash
55+
ln -s /usr/local/bin/bash /bin/bash
56+
<< : *COMMON_TASKS_TEMPLATE
57+
58+
# Mac
59+
task:
60+
name: Darwin $TASK_NAME_SUFFIX
61+
osx_instance:
62+
image: catalina-xcode
63+
environment:
64+
matrix:
65+
- TASK_NAME_SUFFIX: Testsuite
66+
RUN_TESTSUITE: 1
67+
- TASK_NAME_SUFFIX: Unit Tests
68+
RUN_TESTSUITE: 0
69+
<< : *COMMON_TASKS_TEMPLATE

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [ ibuclaw ]

.github/workflows/main.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
2+
3+
name: Main
4+
on:
5+
- push # branch or tag
6+
7+
jobs:
8+
linux:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
include:
13+
- job_name: ubuntu-x86_64 (testsuite)
14+
target: x86_64-linux-gnu
15+
- job_name: ubuntu-x86_64 (unittests)
16+
target: x86_64-linux-gnu
17+
- job_name: ubuntu-x86_64 (bootstrap)
18+
target: x86_64-linux-gnu
19+
bootstrap: enable
20+
- job_name: ubuntu-arm
21+
target: arm-linux-gnueabi
22+
- job_name: ubuntu-armhf
23+
target: arm-linux-gnueabihf
24+
- job_name: ubuntu-aarch64
25+
target: aarch64-linux-gnu
26+
- job_name: ubuntu-mips
27+
target: mips-linux-gnu
28+
- job_name: ubuntu-mips64el
29+
target: mips64el-linux-gnuabi64
30+
- job_name: ubuntu-mipsel
31+
target: mipsel-linux-gnu
32+
- job_name: ubuntu-powerpc64le
33+
target: powerpc64le-linux-gnu
34+
- job_name: ubuntu-systemz
35+
target: s390x-linux-gnu
36+
- job_name: ubuntu-sparc64
37+
target: sparc64-linux-gnu
38+
name: ${{ matrix.job_name }}
39+
runs-on: ubuntu-22.04
40+
env:
41+
GCC_CI_TARGET: ${{ matrix.target }}
42+
GCC_CI_BOOTSTRAP: ${{ matrix.bootstrap || 'disable' }}
43+
steps:
44+
- uses: actions/checkout@v4
45+
with:
46+
fetch-depth: 10
47+
- name: Install dependencies
48+
run: ./buildci.sh installdeps
49+
- name: Configure gdc
50+
run: ./buildci.sh configure
51+
- name: Build gdc
52+
run: ./buildci.sh build
53+
- name: Run testsuite
54+
run: ${{ contains(matrix.job_name, 'testsuite') && './buildci.sh testsuite' || 'echo disabled' }}
55+
- name: Run unittests
56+
run: ${{ contains(matrix.job_name, 'unittests') && './buildci.sh unittests' || 'echo disabled' }}

.semaphore/semaphore.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
version: v1.0
2+
name: GDC
3+
agent:
4+
machine:
5+
type: e1-standard-2
6+
os_image: ubuntu1804
7+
execution_time_limit:
8+
hours: 3
9+
10+
blocks:
11+
- name: "Ubuntu 18.04"
12+
dependencies: []
13+
execution_time_limit:
14+
hours: 2
15+
task:
16+
jobs:
17+
- name: "Testsuite"
18+
commands:
19+
- checkout
20+
- ./buildci.sh setup
21+
- ./buildci.sh build
22+
- ./buildci.sh testsuite
23+
- name: "Unit Tests"
24+
commands:
25+
- checkout
26+
- ./buildci.sh setup
27+
- ./buildci.sh build
28+
- ./buildci.sh unittests
29+
- name: "OSX 10.15"
30+
dependencies: []
31+
task:
32+
agent:
33+
machine:
34+
type: a1-standard-4
35+
os_image: macos-xcode11
36+
jobs:
37+
- name: "Testsuite"
38+
commands:
39+
- checkout
40+
- ./buildci.sh setup
41+
- ./buildci.sh build
42+
- ./buildci.sh testsuite
43+
- name: "Unit Tests"
44+
commands:
45+
- checkout
46+
- ./buildci.sh setup
47+
- ./buildci.sh build
48+
- ./buildci.sh unittests

0 commit comments

Comments
 (0)