BOSL2/.github/workflows/main.yml

103 lines
2.9 KiB
YAML
Raw Normal View History

2021-06-23 02:44:47 +00:00
name: Checks
2020-07-07 07:32:50 +00:00
on: [pull_request]
2020-06-19 02:47:02 +00:00
jobs:
2020-06-20 06:00:40 +00:00
Regressions:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
2020-06-20 06:00:40 +00:00
- name: Install Required Libraries
run: sudo apt-get install libfuse2
- name: Install OpenSCAD
2020-06-20 06:00:40 +00:00
run: |
cd $GITHUB_WORKSPACE
wget https://github.com/openscad/openscad/releases/download/openscad-2021.01/OpenSCAD-2021.01-x86_64.AppImage
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
2020-06-20 06:00:40 +00:00
sudo chmod +x /usr/local/bin/openscad
- name: Run Regression Tests
run: |
cd $GITHUB_WORKSPACE
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
./scripts/run_tests.sh
CheckTutorials:
runs-on: ubuntu-latest
2020-06-19 02:47:02 +00:00
steps:
- name: Checkout
uses: actions/checkout@v3
2020-06-19 02:47:02 +00:00
2021-03-09 07:31:39 +00:00
- name: Clone Wiki
uses: actions/checkout@v3
2021-05-16 19:49:53 +00:00
with:
2023-05-22 04:00:05 +00:00
repository: BelfrySCAD/BOSL2.wiki
2021-05-16 19:49:53 +00:00
path: BOSL2.wiki
2020-06-19 23:51:28 +00:00
- name: Apt Update
run: sudo apt update
2022-12-01 04:13:07 +00:00
- name: Install Required Libraries
run: sudo apt-get install python3-pip python3-dev python3-setuptools python3-pil libfuse2
- name: Install OpenSCAD-DocsGen package.
run: sudo pip3 install openscad-docsgen
2020-06-20 06:00:40 +00:00
- name: Install OpenSCAD
2020-06-19 23:51:28 +00:00
run: |
cd $GITHUB_WORKSPACE
wget https://github.com/openscad/openscad/releases/download/openscad-2021.01/OpenSCAD-2021.01-x86_64.AppImage
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
2020-06-20 06:00:40 +00:00
sudo chmod +x /usr/local/bin/openscad
2020-06-19 23:51:28 +00:00
2021-06-23 02:44:47 +00:00
- name: Tabs Check
run: |
cd $GITHUB_WORKSPACE
echo "::add-matcher::.github/check_for_tabs.json"
./scripts/check_for_tabs.sh
- name: Checking Tutorials
2020-06-20 02:41:06 +00:00
run: |
cd $GITHUB_WORKSPACE
echo "::add-matcher::.github/openscad_docsgen.json"
2020-06-20 03:22:56 +00:00
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
2022-01-17 08:45:36 +00:00
openscad-mdimggen -T
2020-06-20 02:41:06 +00:00
CheckDocs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Clone Wiki
uses: actions/checkout@v3
with:
2023-05-22 04:00:05 +00:00
repository: BelfrySCAD/BOSL2.wiki
path: BOSL2.wiki
- name: Apt Update
run: sudo apt update
2022-12-01 04:13:07 +00:00
- name: Install Required Libraries
run: sudo apt-get install python3-pip python3-dev python3-setuptools python3-pil libfuse2
- name: Install OpenSCAD-DocsGen package.
run: sudo pip3 install openscad-docsgen
- name: Install OpenSCAD
run: |
cd $GITHUB_WORKSPACE
wget https://github.com/openscad/openscad/releases/download/openscad-2021.01/OpenSCAD-2021.01-x86_64.AppImage
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
sudo chmod +x /usr/local/bin/openscad
- name: Checking Docs
2021-12-14 00:31:14 +00:00
run: |
cd $GITHUB_WORKSPACE
echo "::add-matcher::.github/openscad_docsgen.json"
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
2022-01-17 08:45:36 +00:00
openscad-docsgen -Tmf
2021-12-14 00:31:14 +00:00