Skip to content

Commit

Permalink
Merge pull request #41 from fraya/master
Browse files Browse the repository at this point in the history
CI: Update
  • Loading branch information
fraya committed Apr 9, 2024
2 parents 518a7db + 2ada853 commit 7a6e593
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
55 changes: 55 additions & 0 deletions .github/workflows/build-and-deploy-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build and deploy documentation

on:
push:
# all branches
pull_request:

# This enables the Run Workflow button on the Actions tab.
workflow_dispatch:

# https://github.com/JamesIves/github-pages-deploy-action#readme
permissions:
contents: write

# Set DYLAN environment variable to GITHUB_WORKSPACE so packages are
# installed in ../../_packages relative to documentation's Makefile
env:
DYLAN: ${{ github.workspace }}

jobs:

build-and-deploy:
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Check links
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/fraya/dylan-docs
options: -v ${{ github.workspace }}/documentation:/docs
run: make linkcheck

- name: Build docs with Furo theme
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/fraya/dylan-docs
options: -v ${{ github.workspace }}/documentation:/docs
run: make html

- name: Upload html artifact
uses: actions/upload-artifact@v4
with:
name: command-line-parser
path: documentation/build/html/

- name: Bypassing Jekyll on GH Pages
run: sudo touch documentation/build/html/.nojekyll

- name: Deploy docs to GH pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: documentation/build/html
13 changes: 8 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# Not using dylan-tool and packages here yet because of a circular
# dependency between testworks and command-line-parser.
# https://github.com/dylan-lang/pacman/issues/17
- uses: dylan-lang/install-opendylan@v2

- uses: actions/checkout@v4

- uses: dylan-lang/install-opendylan@v3

- name: Update dependencies
run: dylan update

- name: Build command-line-parser-test-suite-app
run: ./dylan-compiler -build -jobs 3 command-line-parser-test-suite-app
run: dylan build command-line-parser-test-suite-app

- name: Run command-line-parser-test-suite-app
run: _build/bin/command-line-parser-test-suite-app
3 changes: 3 additions & 0 deletions documentation/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
'dylan.domain',
'sphinx.ext.intersphinx'
]

# Ignore certification verification
tls_verify = False

0 comments on commit 7a6e593

Please sign in to comment.