Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Switch CI to CI template from other Mir projects #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
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, 'beta') }}
env:
ARCH: ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
dc: [ldc-latest, ldc-beta, dmd-latest, dmd-beta]
os: [ubuntu-latest, windows-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@ec3a7ce113134d7a93b817d10a8272cb61118579
- uses: dlang-community/setup-dlang@763d869b4d67e50c3ccd142108c8bca2da9df166
with:
compiler: ${{ matrix.dc }}
- name: Install multi-lib for 32-bit systems
if: matrix.arch == 'x86' && matrix.os == 'ubuntu-latest'
run: sudo apt-get install gcc-multilib
- id: build
name: Test building
run: |
dub test --arch=$ARCH --build=unittest-cov
dub build
shell: bash
- id: examples
name: Test building / running examples
run: |
dub run --root examples/mir_serde
dub build --root examples/constructor
dub build --root examples/getting_started
dub build --root examples/representer
dub build --root examples/resolver
dub build --root examples/tojson
dub build --root examples/yaml_bench
dub build --root examples/yaml_gen
dub build --root examples/yaml_stats
dub build --root testsuite
shell: bash
- id: coverage
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
41 changes: 0 additions & 41 deletions .github/workflows/d.yml

This file was deleted.