From f4dafbe246d56b34a2a8b3a4fe7be5c0c95682c7 Mon Sep 17 00:00:00 2001 From: Ali Caglayan Date: Wed, 23 Feb 2022 22:52:18 +0000 Subject: [PATCH 1/6] github actions to replace travis script --- .github/workflows/ci.yml | 64 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..42d9d655d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,64 @@ +name: CI + +on: [ push, pull_request ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + include: + - latexmk: "yes" + update_errata: "" + update_nightlies: "" + targets: "" + - latexmk: "" + update_errata: "yes" + update_nightlies: "yes" + targets: "" + - latexmk: "" + update_errata: "" + update_nightlies: "" + targets: "dvi" + + env: + LATEXMK: ${{ matrix.latexmk }} + UPDATE_ERRATA: ${{ matrix.update_errata }} + UPDATE_NIGHTLIES: ${{ matrix.update_nightlies }} + TARGETS: ${{ matrix.targets }} + + steps: + # Install texlive and other deps + - name: Install deps + run: + sudo apt-get install \ + wget \ + curl \ + sed \ + grep \ + texlive \ + texlive-generic-extra \ + texlive-latex-base \ + texlive-latex-extra \ + texlive-latex-recommended \ + texlive-math-extra \ + texlive-metapost \ + texlive-omega \ + texlive-plain-extra \ + texlive-xetex + + # Install latexmk if needed + - name: Install latexmk + if: matrix.latexmk == "yes" + run: + sudo apt-get install latexmk -y + + - name: build + make ${{ matrix.targets }} + + - name: Update errata + run: etc/ci/update_errata.sh + + - name: Update nightlies + run: etc/ci/update_nightlies.sh From 6278d7d0de30b4e82ecb9197eb0e5d7613610bbc Mon Sep 17 00:00:00 2001 From: Ali Caglayan Date: Wed, 23 Feb 2022 22:54:26 +0000 Subject: [PATCH 2/6] fix syntax --- .github/workflows/ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42d9d655d..cf5bd5a70 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: steps: # Install texlive and other deps - name: Install deps - run: + run: | sudo apt-get install \ wget \ curl \ @@ -51,11 +51,10 @@ jobs: # Install latexmk if needed - name: Install latexmk if: matrix.latexmk == "yes" - run: - sudo apt-get install latexmk -y + run: sudo apt-get install latexmk -y - - name: build - make ${{ matrix.targets }} + - name: Build + run: make ${{ matrix.targets }} - name: Update errata run: etc/ci/update_errata.sh From e3733ad885e3de356c18717494f93897988d8b8e Mon Sep 17 00:00:00 2001 From: Ali Caglayan Date: Wed, 23 Feb 2022 22:56:06 +0000 Subject: [PATCH 3/6] fix quotes --- .github/workflows/ci.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf5bd5a70..b1a8f1311 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,18 +9,18 @@ jobs: strategy: matrix: include: - - latexmk: "yes" - update_errata: "" - update_nightlies: "" - targets: "" - - latexmk: "" - update_errata: "yes" - update_nightlies: "yes" - targets: "" - - latexmk: "" - update_errata: "" - update_nightlies: "" - targets: "dvi" + - latexmk: 'yes' + update_errata: '' + update_nightlies: '' + targets: '' + - latexmk: '' + update_errata: 'yes' + update_nightlies: 'yes' + targets: '' + - latexmk: '' + update_errata: '' + update_nightlies: '' + targets: 'dvi' env: LATEXMK: ${{ matrix.latexmk }} @@ -50,7 +50,7 @@ jobs: # Install latexmk if needed - name: Install latexmk - if: matrix.latexmk == "yes" + if: matrix.latexmk == 'yes' run: sudo apt-get install latexmk -y - name: Build From 79c2c285970301a1ac33a3f93aa6a595df196d6a Mon Sep 17 00:00:00 2001 From: Ali Caglayan Date: Wed, 23 Feb 2022 22:57:24 +0000 Subject: [PATCH 4/6] fix broken package --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1a8f1311..999a22725 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,8 @@ jobs: texlive-latex-base \ texlive-latex-extra \ texlive-latex-recommended \ - texlive-math-extra \ + texlive-science-doc \ + texlive-science \ texlive-metapost \ texlive-omega \ texlive-plain-extra \ From 86e1dd1541f388026ef660c3e27e18519f5476e8 Mon Sep 17 00:00:00 2001 From: Ali Caglayan Date: Wed, 23 Feb 2022 23:04:54 +0000 Subject: [PATCH 5/6] remove broken deps --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 999a22725..e1d25b54b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,15 +38,12 @@ jobs: sed \ grep \ texlive \ - texlive-generic-extra \ texlive-latex-base \ texlive-latex-extra \ texlive-latex-recommended \ texlive-science-doc \ texlive-science \ texlive-metapost \ - texlive-omega \ - texlive-plain-extra \ texlive-xetex # Install latexmk if needed From c7fe96159a3e178eee83e18a21cd78afe1b27279 Mon Sep 17 00:00:00 2001 From: Ali Caglayan Date: Wed, 23 Feb 2022 23:08:21 +0000 Subject: [PATCH 6/6] actually checkout repo --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1d25b54b..d745b2f56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,10 @@ jobs: texlive-science \ texlive-metapost \ texlive-xetex - + + - name: Checkout repo + uses: actions/checkout@v2 + # Install latexmk if needed - name: Install latexmk if: matrix.latexmk == 'yes'