mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-06 04:09:47 +00:00
Try to fix bad docs image generation by moving to Ubuntu VM.
This commit is contained in:
parent
d7ee1cee09
commit
697230b704
1 changed files with 18 additions and 11 deletions
29
.github/workflows/docsgen.yml
vendored
29
.github/workflows/docsgen.yml
vendored
|
@ -1,14 +1,17 @@
|
||||||
name: CI
|
name: DocsGen
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
types: [closed]
|
types: [closed]
|
||||||
|
workflow_dispatch:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
GenerateDocs:
|
GenerateDocs:
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
runs-on: macos-10.15
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -19,27 +22,31 @@ jobs:
|
||||||
repository: revarbat/BOSL2.wiki
|
repository: revarbat/BOSL2.wiki
|
||||||
path: BOSL2.wiki
|
path: BOSL2.wiki
|
||||||
|
|
||||||
- name: Install gifsicle
|
- name: Apt Update
|
||||||
run: brew install gifsicle
|
run: sudo apt update
|
||||||
|
|
||||||
- name: Install Pillow
|
- name: Install Packages
|
||||||
run: sudo pip3 install Pillow
|
run: sudo apt-get install -y python3-pip python3-dev python3-setuptools python3-pil gifsicle
|
||||||
|
|
||||||
- name: Install Docsgen
|
- name: Install openscad-docsgen
|
||||||
run: sudo pip3 install openscad_docsgen
|
run: sudo pip3 install openscad_docsgen
|
||||||
|
|
||||||
|
- name: Install gifsicle
|
||||||
|
run: sudo pip3 install gifsicle
|
||||||
|
|
||||||
- name: Install OpenSCAD
|
- name: Install OpenSCAD
|
||||||
run: |
|
run: |
|
||||||
curl -L -o OpenSCAD.dmg https://files.openscad.org/snapshots/OpenSCAD-2021.05.07.dmg
|
cd $GITHUB_WORKSPACE
|
||||||
hdiutil attach OpenSCAD.dmg
|
wget https://files.openscad.org/OpenSCAD-2021.01-x86_64.AppImage
|
||||||
cp -a /Volumes/OpenSCAD/OpenSCAD.app /Applications/
|
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
|
||||||
|
sudo chmod +x /usr/local/bin/openscad
|
||||||
|
|
||||||
- name: Generating Docs
|
- name: Generating Docs
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE
|
cd $GITHUB_WORKSPACE
|
||||||
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
||||||
echo "::add-matcher::.github/openscad_docsgen.json"
|
echo "::add-matcher::.github/openscad_docsgen.json"
|
||||||
openscad-docsgen -m -i -t -c -I *.scad
|
openscad-docsgen -ticmI *.scad
|
||||||
cd BOSL2.wiki
|
cd BOSL2.wiki
|
||||||
git config user.name github-actions
|
git config user.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
|
|
Loading…
Reference in a new issue