mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 21:22:20 +03:00
[dmd-cxx] Add GitHub workflow for dmd-cxx branch (#7782)
[dmd-cxx] Add GitHub workflow for dmd-cxx branch merged-on-behalf-of: Mathias LANG <pro.mathias.lang@gmail.com>
This commit is contained in:
parent
3dd5df6864
commit
7e16342065
1 changed files with 67 additions and 0 deletions
67
.github/workflows/dmd-cxx.yml
vendored
Normal file
67
.github/workflows/dmd-cxx.yml
vendored
Normal file
|
@ -0,0 +1,67 @@
|
|||
# Github action to test C++ implementation of DMD
|
||||
#
|
||||
# Based-on:
|
||||
# - Github C/C++ with Make
|
||||
# - DMD C++ interop tests
|
||||
name: DMD C++ (phobos)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ dmd-cxx ]
|
||||
push:
|
||||
branches: [ dmd-cxx ]
|
||||
|
||||
jobs:
|
||||
main:
|
||||
name: Run
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ ubuntu-16.04 ]
|
||||
target: [ clang, g++ ]
|
||||
|
||||
# We're using the oldest available images at the time of this commit.
|
||||
# Using a specific version for reproductibility.
|
||||
# Feel free to update when a new release has matured.
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
|
||||
#########################################
|
||||
# Checking out up DMD, druntime, Phobos #
|
||||
#########################################
|
||||
- name: Checkout DMD
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: dmd
|
||||
repository: dlang/dmd
|
||||
ref: dmd-cxx
|
||||
- name: Checkout druntime
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: druntime
|
||||
repository: dlang/druntime
|
||||
ref: dmd-cxx
|
||||
- name: Checkout Phobos
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: phobos
|
||||
|
||||
########################################
|
||||
# Building DMD, druntime, Phobos #
|
||||
########################################
|
||||
- name: '[Posix] Build compiler & standard library'
|
||||
# By default, VMs have 2 processors available, hence the `-j2`:
|
||||
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources
|
||||
run: |
|
||||
# All hosts are 64 bits but let's be explicit
|
||||
make -j2 -C dmd/src -f posix.mak dmd HOST_CC=${{ matrix.target }} MODEL=64
|
||||
make -j2 -C dmd/src -f posix.mak dmd.conf
|
||||
make -j2 -C druntime -f posix.mak DMD=../dmd/src/dmd MODEL=64
|
||||
make -j2 -C phobos -f posix.mak DMD=../dmd/src/dmd MODEL=64
|
||||
|
||||
########################################
|
||||
# Running the test suite #
|
||||
########################################
|
||||
- name: Run test suite
|
||||
run: |
|
||||
make -j2 -C druntime -f posix.mak DMD=../dmd/src/dmd MODEL=64 unittest
|
||||
make -j2 -C phobos -f posix.mak DMD=../dmd/src/dmd MODEL=64 unittest
|
Loading…
Add table
Add a link
Reference in a new issue