Skip to content

Commit

Permalink
Merge branch 'github-actions-upgrade'
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed Jul 2, 2020
2 parents 5e300e6 + fafa135 commit e4b5898
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ jobs:
docs:
runs-on: ubuntu-18.04
steps:
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: 3
- name: Install dependencies
run: |
sudo pip3 install --system sphinx
pip install sphinx
- name: Clone scripts
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Set up DFHack
run: |
git clone git://github.com/dfhack/dfhack $HOME/dfhack --depth 1 --branch develop
Expand All @@ -21,7 +25,7 @@ jobs:
run: |
sphinx-build -qW -j3 $HOME/dfhack html
- name: Check for missing docs
run: python3 $HOME/dfhack/travis/script-docs.py .
run: python $HOME/dfhack/travis/script-docs.py .
- name: Upload docs
if: success() || failure()
uses: actions/upload-artifact@master
Expand All @@ -31,22 +35,30 @@ jobs:
lint:
runs-on: ubuntu-18.04
steps:
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: 3
- name: Set up Ruby 2.7
uses: actions/setup-ruby@v1
with:
ruby-version: 2.7
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install lua5.3
- name: Clone scripts
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Set up DFHack
run: |
git clone git://github.com/dfhack/dfhack $HOME/dfhack --depth 1 --branch develop
rmdir $HOME/dfhack/scripts
ln -sv $(pwd) $HOME/dfhack/scripts
- name: Check whitespace
run: python3 $HOME/dfhack/travis/lint.py
run: python $HOME/dfhack/travis/lint.py
- name: Check Lua syntax
if: success() || failure()
run: python3 $HOME/dfhack/travis/script-syntax.py --ext=lua --cmd="luac5.3 -p"
run: python $HOME/dfhack/travis/script-syntax.py --ext=lua --cmd="luac5.3 -p" --github-actions
- name: Check Ruby syntax
if: success() || failure()
run: python3 $HOME/dfhack/travis/script-syntax.py --ext=rb --cmd="ruby -c"
run: python $HOME/dfhack/travis/script-syntax.py --ext=rb --cmd="ruby -c" --github-actions

0 comments on commit e4b5898

Please sign in to comment.