From 214bb4981cde970e9bc66f4ff6ce2fa9a4ffc2c1 Mon Sep 17 00:00:00 2001 From: Eduard Staniloiu Date: Thu, 10 Feb 2022 13:54:52 +0200 Subject: [PATCH] Update action to build dlang fork --- .github/workflows/build.yml | 28 ---------------------------- .github/workflows/default.yml | 12 +++++++++++- 2 files changed, 11 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 7999630..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 30e9f1c..4c2c3b9 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -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