Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
# allow this workflow to be triggered manually

jobs:
builder:
name: 'Build and test on ${{ matrix.arch }}-${{ matrix.os }}/${{ matrix.dc }}'
runs-on: ${{ matrix.os }}
continue-on-error: ${{ contains(matrix.dc, 'master') || contains(matrix.dc, 'beta') }}
env:
ARCH: ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
dc: [ldc-latest, ldc-beta, dmd-latest, dmd-master, dmd-beta]
os: [ubuntu-latest]
arch: [x86, x86_64]
include:
- dc: ldc-latest
os: macos-latest
arch: x86_64
- dc: dmd-latest
os: macos-latest
arch: x86_64
steps:
- uses: actions/checkout@v2
- uses: dlang-community/setup-dlang@v1.1.0
with:
compiler: ${{ matrix.dc }}
- name: Install multi-lib for 32-bit systems
if: matrix.arch == 'x86'
run: sudo apt-get install gcc-multilib
- id: build
name: Test building
run: bash -e test_travis.sh
- id: coverage
name: Upload coverage data
run: bash <(curl -s https://codecov.io/bash)


6 changes: 5 additions & 1 deletion test_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ then
docker run --rm --privileged multiarch/qemu-user-static:register --reset
docker build -t ion-arm64 . -f Dockerfile.aarch64
else
echo $DC
echo $ARCH
dub test --arch=$ARCH --build=unittest-dip1000
if [ "$DC" != "gdc" ]
then
dub test --arch=$ARCH --build=unittest-dip1000
fi
dub test --arch=$ARCH --build=unittest-cov
# if [ \( "$DC" = "ldc2" \) -o \( "$DC" = "ldmd2" \) ]
# then
Expand Down