From 4ce8750caf8200c8231ae9f9b9b640921ff9e880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Tue, 9 Feb 2021 20:36:07 +0000 Subject: [PATCH 01/10] WIP First stab at Github Actions --- .github/workflows/presubmit.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/presubmit.yml diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml new file mode 100644 index 00000000..c87f652b --- /dev/null +++ b/.github/workflows/presubmit.yml @@ -0,0 +1,25 @@ +name: Presubmit +on: [push, pull_request] + +jobs: + build: + name: Generate all specs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: recursive + - name: Install required packages + run: | + sudo apt-get install -y libpango1.0-dev ghostscript fonts-lyx + gem install asciidoctor -v 1.5.8 + gem install coderay -v 1.1.1 + gem install ttfunk -v 1.5.1 + gem install asciidoctor-pdf -v 1.5.0 + MATHEMATICAL_SKIP_STRDUP=1 gem install asciidoctor-mathematical -v 0.2.2 + - name: Generate all specs + run: | + git describe --tags --dirty + make api c env ext cxx4opencl + make extensionshtml From f7781927bdf6eb969dc5fbf982de35f8f8bb24ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Tue, 9 Feb 2021 20:38:38 +0000 Subject: [PATCH 02/10] sudo --- .github/workflows/presubmit.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index c87f652b..2ca8c2f2 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -13,11 +13,11 @@ jobs: - name: Install required packages run: | sudo apt-get install -y libpango1.0-dev ghostscript fonts-lyx - gem install asciidoctor -v 1.5.8 - gem install coderay -v 1.1.1 - gem install ttfunk -v 1.5.1 - gem install asciidoctor-pdf -v 1.5.0 - MATHEMATICAL_SKIP_STRDUP=1 gem install asciidoctor-mathematical -v 0.2.2 + sudo gem install asciidoctor -v 1.5.8 + sudo gem install coderay -v 1.1.1 + sudo gem install ttfunk -v 1.5.1 + sudo gem install asciidoctor-pdf -v 1.5.0 + sudo MATHEMATICAL_SKIP_STRDUP=1 gem install asciidoctor-mathematical -v 0.2.2 - name: Generate all specs run: | git describe --tags --dirty From d3100906c0a00636f654cdaf2c71d07d26c6c38d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Tue, 9 Feb 2021 20:39:25 +0000 Subject: [PATCH 03/10] remove travis config --- .travis.yml | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 48a0e3fe..00000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -dist: xenial - -language: ruby - -git: - depth: 200 - -rvm: - - 2.3.3 - -before_install: - - sudo apt-get install -y libpango1.0-dev ghostscript fonts-lyx - - gem install asciidoctor -v 1.5.8 - - gem install coderay -v 1.1.1 - - gem install ttfunk -v 1.5.1 - - gem install asciidoctor-pdf -v 1.5.0 - - MATHEMATICAL_SKIP_STRDUP=1 gem install asciidoctor-mathematical -v 0.2.2 - -script: - - git describe --tags --dirty - - make api c env ext cxx4opencl - -deploy: - provider: releases - api_key: $GH_TOKEN - file_glob: true - file: out/pdf/* - skip_cleanup: true - on: - tags: true - edge: true From 5c8ff7170ddb29f41e492600b48fd52c123ce94c Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 19 Mar 2024 11:32:36 -0700 Subject: [PATCH 04/10] change travis builds to only build on tags --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index fc2b142c..57387f71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,9 @@ dist: focal +# Only build (and deploy) on travis for tags. +# Use GitHub actions for other CI. +if: tag IS present + language: ruby git: From 9cad3bf57c556135d8fa36b512b6bdfb57ba40af Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 19 Mar 2024 11:41:47 -0700 Subject: [PATCH 05/10] sync GitHub actions with travis script --- .github/workflows/presubmit.yml | 36 ++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index 2ca8c2f2..281a6959 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -1,25 +1,47 @@ name: Presubmit + +permissions: + contents: read + on: [push, pull_request] jobs: build: - name: Generate all specs runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: recursive + - name: Install required packages run: | - sudo apt-get install -y libpango1.0-dev ghostscript fonts-lyx - sudo gem install asciidoctor -v 1.5.8 + sudo apt-get install -y libpango1.0-dev ghostscript fonts-lyx jing + sudo gem install asciidoctor -v 2.0.16 sudo gem install coderay -v 1.1.1 + sudo gem install rouge -v 3.19.0 sudo gem install ttfunk -v 1.5.1 + sudo gem install hexapdf -v 0.27.0 sudo gem install asciidoctor-pdf -v 1.5.0 - sudo MATHEMATICAL_SKIP_STRDUP=1 gem install asciidoctor-mathematical -v 0.2.2 - - name: Generate all specs + sudo gem install asciidoctor-mathematical -v 0.3.5 + + - name: List git tag run: | git describe --tags --dirty - make api c env ext cxx4opencl + + - name: Generate all specs + run: | + make -O -j 5 api c env ext cxx4opencl + + - name: Generate extension specs + run: | make extensionshtml + + - name: Generate reference pages + run: | + make -O -j 5 manhtmlpages + + - name: Validate XML + run: | + make -C xml validate From 85fd9a7efc2950c4c6f16fcb458523c68eef3e7a Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 19 Mar 2024 11:42:16 -0700 Subject: [PATCH 06/10] configure dependabot github actions version updates --- .github/dependabot.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..2390d8c8 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + groups: + github-actions: + patterns: + - "*" From 10540ef25c6122e4bada65dc108cfae97772b03e Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 19 Mar 2024 11:45:45 -0700 Subject: [PATCH 07/10] update gem versions --- .github/workflows/presubmit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index 281a6959..b08dec54 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -21,9 +21,9 @@ jobs: sudo gem install asciidoctor -v 2.0.16 sudo gem install coderay -v 1.1.1 sudo gem install rouge -v 3.19.0 - sudo gem install ttfunk -v 1.5.1 + sudo gem install ttfunk -v 1.7.0 sudo gem install hexapdf -v 0.27.0 - sudo gem install asciidoctor-pdf -v 1.5.0 + sudo gem install asciidoctor-pdf -v 2.3.4 sudo gem install asciidoctor-mathematical -v 0.3.5 - name: List git tag From 2ee25fb8a64fa014a8d6c76956799fe33e3a9100 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 19 Mar 2024 11:50:56 -0700 Subject: [PATCH 08/10] add libwebp-dev dependency for asciidoctor-mathematical --- .github/workflows/presubmit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index b08dec54..1879f2f9 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -17,7 +17,7 @@ jobs: - name: Install required packages run: | - sudo apt-get install -y libpango1.0-dev ghostscript fonts-lyx jing + sudo apt-get install -y libpango1.0-dev libwebp-dev ghostscript fonts-lyx jing sudo gem install asciidoctor -v 2.0.16 sudo gem install coderay -v 1.1.1 sudo gem install rouge -v 3.19.0 From 2b8c2c2d1db2b0a8a51534ccd8d8ca7f246d5630 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 19 Mar 2024 11:57:56 -0700 Subject: [PATCH 09/10] minor updates --- .github/workflows/presubmit.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index 1879f2f9..49925cab 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -7,6 +7,7 @@ on: [push, pull_request] jobs: build: + name: Build all specs runs-on: ubuntu-latest steps: @@ -30,9 +31,9 @@ jobs: run: | git describe --tags --dirty - - name: Generate all specs + - name: Generate core specs run: | - make -O -j 5 api c env ext cxx4opencl + make -O -j5 api c env ext cxx4opencl - name: Generate extension specs run: | @@ -40,7 +41,7 @@ jobs: - name: Generate reference pages run: | - make -O -j 5 manhtmlpages + make -O -j manhtmlpages - name: Validate XML run: | From 201e0378a6d54d4eb6dd0fc89f2a9e1a5754ffa1 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Wed, 20 Mar 2024 14:01:21 -0700 Subject: [PATCH 10/10] update for the new spec toolchain --- .github/workflows/presubmit.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index 49925cab..60557125 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -18,7 +18,7 @@ jobs: - name: Install required packages run: | - sudo apt-get install -y libpango1.0-dev libwebp-dev ghostscript fonts-lyx jing + sudo apt-get install -y libpango1.0-dev libwebp-dev ghostscript fonts-lyx jing libavalon-framework-java libbatik-java python3-pyparsing sudo gem install asciidoctor -v 2.0.16 sudo gem install coderay -v 1.1.1 sudo gem install rouge -v 3.19.0 @@ -26,22 +26,23 @@ jobs: sudo gem install hexapdf -v 0.27.0 sudo gem install asciidoctor-pdf -v 2.3.4 sudo gem install asciidoctor-mathematical -v 0.3.5 + sudo pip install pyparsing - name: List git tag run: | git describe --tags --dirty - - name: Generate core specs + - name: Generate core specs (HTML and PDF) run: | - make -O -j5 api c env ext cxx4opencl + python3 makeSpec -clean -spec core OUTDIR=out.core -j 5 api c env ext cxx4opencl - - name: Generate extension specs + - name: Generate core + extension specs (HTML) run: | - make extensionshtml + python3 makeSpec -clean -spec khr OUTDIR=out.khr -j 12 html - name: Generate reference pages run: | - make -O -j manhtmlpages + python3 makeSpec -spec khr OUTDIR=out.refpages -j 12 manhtmlpages - name: Validate XML run: |