Skip to content

Commit

Permalink
Modernize CI infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 committed Jun 14, 2024
1 parent 2e9eae6 commit 58e19e6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

# Checkout this repository and its submodules
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Install the D compiler
- name: Prepare compiler
Expand All @@ -36,7 +36,7 @@ jobs:
dub run ddox -- generate-html --file-name-style=lowerUnderscored docs.filtered.json ./docs/
- name: Upload documentation artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: documentation
path: docs/
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@
# For example use `${{ github.workspace }}` over `${GITHUB_WORKSPACE}`
name: CI

on: [push, pull_request]
on:
push:
branches:
- 'v*.*.x'
tags:
- 'v*'
pull_request:
branches:
- 'v*.*.x'
# Do a periodic build (every Monday at 0600) to ensure integrity
schedule:
- cron: '0 6 * * 1'

jobs:
main:
Expand All @@ -21,20 +32,26 @@ jobs:
# of the nigthly is broken
fail-fast: false
matrix:
os: [ ubuntu-20.04, macOS-11, windows-2019 ]
os: [ ubuntu-latest, macOS-latest, windows-latest ]
dc: [ dmd-latest, ldc-latest, dmd-master, ldc-master ]
# Define job-specific parameters
include:
# By default, don't generate artifacts nor run extra checks for push
- { artifacts: false, run_extra_checks: false }
- { dc: ldc-latest, artifacts: true, run_extra_checks: true }
exclude:
- { dc: dmd-latest, os: macOS-latest }
- { dc: dmd-master, os: macOS-latest }

runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:

# Checkout this repository and its submodules
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
# For codecov
fetch-depth: 2

# Install the D compiler
- name: Prepare compiler
Expand All @@ -54,6 +71,6 @@ jobs:
run: dub test --compiler=$DC -b unittest-cov -c unittest

- name: 'Upload code coverage'
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
flags: unittests

0 comments on commit 58e19e6

Please sign in to comment.