mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-26 21:30:14 +03:00
Update action to build dlang fork
This commit is contained in:
parent
6cf762624d
commit
214bb4981c
2 changed files with 11 additions and 29 deletions
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
@ -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
|
|
12
.github/workflows/default.yml
vendored
12
.github/workflows/default.yml
vendored
|
@ -6,13 +6,14 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
- replace_libdparse
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
name: Run all tests
|
name: Run all tests
|
||||||
|
|
||||||
# Only run for the main repository - not forks
|
# 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
|
# Run permutations of common os + host compilers
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -75,6 +76,10 @@ jobs:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 0
|
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)
|
# Install the host compiler (DMD or LDC)
|
||||||
# Also grabs DMD for GDC to include dub + rdmd
|
# Also grabs DMD for GDC to include dub + rdmd
|
||||||
- name: Install ${{ matrix.compiler.version }}
|
- name: Install ${{ matrix.compiler.version }}
|
||||||
|
@ -151,6 +156,11 @@ jobs:
|
||||||
working-directory: tests
|
working-directory: tests
|
||||||
shell: bash
|
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 / ...
|
# Parse phobos to check for failures / crashes / ...
|
||||||
- name: Checkout Phobos
|
- name: Checkout Phobos
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue