From 2c378a852aa0ec93ec3e340463ce1d026f5239ed Mon Sep 17 00:00:00 2001 From: Shengqi Chen Date: Thu, 21 Mar 2024 17:20:12 +0800 Subject: [PATCH] ci: cleanup unused configuration Signed-off-by: Shengqi Chen --- .github/workflows/Dockerfile | 18 ------------- .github/workflows/build_test_env.yml | 38 --------------------------- .github/workflows/install-packages.sh | 23 ---------------- .github/workflows/install-texlive.sh | 19 -------------- .github/workflows/test.yml | 15 +++-------- .github/workflows/texlive.profile | 8 ------ 6 files changed, 3 insertions(+), 118 deletions(-) delete mode 100644 .github/workflows/Dockerfile delete mode 100644 .github/workflows/build_test_env.yml delete mode 100755 .github/workflows/install-packages.sh delete mode 100755 .github/workflows/install-texlive.sh delete mode 100644 .github/workflows/texlive.profile diff --git a/.github/workflows/Dockerfile b/.github/workflows/Dockerfile deleted file mode 100644 index b878604d..00000000 --- a/.github/workflows/Dockerfile +++ /dev/null @@ -1,18 +0,0 @@ -FROM debian:stable-slim -LABEL maintainer="Shengqi Chen " - -ENV LANG=C.UTF-8 -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update &&\ - apt-get install -f -y --no-install-recommends ca-certificates curl fontconfig make perl zip git python3 &&\ - update-ca-certificates &&\ - apt-get clean -y &&\ - rm -rf /var/lib/apt/lists/* - -COPY install-texlive.sh install-packages.sh texlive.profile /tmp/ -RUN /tmp/install-texlive.sh -RUN /tmp/install-packages.sh - -ENV PATH="/opt/texlive/bin/x86_64-linux:${PATH}" -CMD /bin/bash diff --git a/.github/workflows/build_test_env.yml b/.github/workflows/build_test_env.yml deleted file mode 100644 index 4b9261d3..00000000 --- a/.github/workflows/build_test_env.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Build Docker test environment - -on: - schedule: - # every day at 00:00 - - cron: "0 0 * * *" - workflow_dispatch: - -env: - REGISTRY: ghcr.io - NAMESPACE: tuna - IMAGE_NAME: thuthesis-test-env - -jobs: - build_and_push: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Log in to the Container registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Build and push - uses: docker/build-push-action@v5 - with: - push: true - context: "{{defaultContext}}:.github/workflows" - tags: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:latest diff --git a/.github/workflows/install-packages.sh b/.github/workflows/install-packages.sh deleted file mode 100755 index 0a031a7b..00000000 --- a/.github/workflows/install-packages.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -export PATH="/opt/texlive/bin/x86_64-linux:$PATH"; - -XECJK_PKGS="fontspec xecjk ulem xetex"; -CTEX_PKGS="cjk ctex everysel zhnumber"; -BIBLATEX_PKGS="biber biblatex biblatex-apa biblatex-gb7714-2015 biblatex-mla xstring"; -HYPERREF_PKGS="pdflscape"; -NOMENCL_PKGS="nomencl koma-script xkeyval"; - -BIN_PKGS="latexmk l3build"; -REQUIRED_PKGS="$XECJK_PKGS $CTEX_PKGS bibunits bigfoot caption enumitem - environ etoolbox filehook footmisc notoccite pdfpages threeparttable \ - titlesec trimspaces unicode-math lt3luabridge cell"; -FONT_PKGS="fandol tex-gyre xits"; -EXTRA_PKGS="algorithms apacite $BIBLATEX_PKGS booktabs $HYPERREF_PKGS $NOMENCL_PKGS ntheorem siunitx"; -MARKDOWN_PKGS="markdown fancyvrb csvsimple gobble" -DOC_PKGS="hologo hypdoc listings xcolor $MARKDOWN_PKGS"; -EXAMPLE_PKGS="float fp metalogo multirow mwe" - -tlmgr install $BIN_PKGS $REQUIRED_PKGS $FONT_PKGS $EXTRA_PKGS $DOC_PKGS \ - $EXAMPLE_PKGS; diff --git a/.github/workflows/install-texlive.sh b/.github/workflows/install-texlive.sh deleted file mode 100755 index a4b6be7a..00000000 --- a/.github/workflows/install-texlive.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -set -e - -# download installer -CTAN_MIRROR="https://ctan.math.illinois.edu" -TL_REMOTE="${CTAN_MIRROR}/systems/texlive/tlnet"; -INSTALL="/tmp/install-texlive"; - -# install TeX Live & remove installer -mkdir -p "$INSTALL"; -curl -sSL "${TL_REMOTE}/install-tl-unx.tar.gz" | tar -xz -C "$INSTALL" \ - --strip-components=1; -"$INSTALL/install-tl" -no-gui -repository ${TL_REMOTE} \ - -profile /tmp/texlive.profile; -rm -rf "$INSTALL"; - -# add packages with tlmgr -export PATH="/opt/texlive/bin/x86_64-linux:$PATH"; -tlmgr option repository ${TL_REMOTE} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 32bb7c69..f97abb0f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -66,17 +66,8 @@ jobs: if: "!contains(github.event.head_commit.message, 'ci skip')" strategy: matrix: - include: - - runs-on: ubuntu-latest - shell: bash - - runs-on: macos-14 - shell: bash - - runs-on: windows-latest - shell: C:\msys64\usr\bin\bash.exe -e {0} - runs-on: ${{ matrix.runs-on }} - defaults: - run: - shell: ${{ matrix.shell }} + os: [ubuntu-latest, macos-14, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - name: Install TeX Live @@ -94,7 +85,7 @@ jobs: uses: actions/upload-artifact@v4 if: failure() with: - name: test-result-${{ matrix.runs-on}} + name: test-result-${{ matrix.os }} path: | build/test build/test-testfiles diff --git a/.github/workflows/texlive.profile b/.github/workflows/texlive.profile deleted file mode 100644 index 8dd48d17..00000000 --- a/.github/workflows/texlive.profile +++ /dev/null @@ -1,8 +0,0 @@ -selected_scheme scheme-basic -TEXDIR /opt/texlive -TEXMFLOCAL /opt/texlive/texmf-local -TEXMFSYSCONFIG /opt/texlive/texmf-config -TEXMFSYSVAR /opt/texlive/texmf-var -tlpdbopt_autobackup 0 -tlpdbopt_install_docfiles 0 -tlpdbopt_install_srcfiles 0