Skip to content

Commit

Permalink
Add README, FUNDING, and CI files
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw authored and Reposync Bot committed Jul 13, 2024
1 parent 2ee5b58 commit a59002b
Show file tree
Hide file tree
Showing 7 changed files with 988 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .cirrus.yml
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
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [ ibuclaw ]
56 changes: 56 additions & 0 deletions .github/workflows/main.yml
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' }}
48 changes: 48 additions & 0 deletions .semaphore/semaphore.yml
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
Loading

0 comments on commit a59002b

Please sign in to comment.