Update action to build dlang fork

This commit is contained in:
Eduard Staniloiu 2022-02-10 13:54:52 +02:00
parent 6cf762624d
commit 214bb4981c
2 changed files with 11 additions and 29 deletions

View file

@ -1,28 +0,0 @@
name: Run tests
on: push
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dmd
run: |
curl https://dlang.org/install.sh | bash -s
# Uncomment to get a ssh connection inside the GH Actions runner
#- name: Setup upterm session
#uses: lhotari/action-upterm@v1
- name: Run style checks
run: |
source ~/dlang/*/activate
make style
- name: Run tests
run: |
source ~/dlang/*/activate
make test

View file

@ -6,13 +6,14 @@ on:
push:
branches:
- master
- replace_libdparse
jobs:
main:
name: Run all tests
# Only run for the main repository - not forks
if: ${{ github.repository == 'dlang-community/D-Scanner' }}
if: ${{ github.repository == 'Dlang-UPB/D-Scanner' }}
# Run permutations of common os + host compilers
strategy:
@ -75,6 +76,10 @@ jobs:
submodules: 'recursive'
fetch-depth: 0
# Uncomment to get a ssh connection inside the GH Actions runner
#- name: Setup upterm session
# uses: lhotari/action-upterm@v1
# Install the host compiler (DMD or LDC)
# Also grabs DMD for GDC to include dub + rdmd
- name: Install ${{ matrix.compiler.version }}
@ -151,6 +156,11 @@ jobs:
working-directory: tests
shell: bash
- name: Run style checks
if: ${{ matrix.compiler.dmd == 'dmd' && matrix.build.type == 'make' }}
run: |
make style
# Parse phobos to check for failures / crashes / ...
- name: Checkout Phobos
uses: actions/checkout@v2