emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/bnf-mode 3a9200cb0b 06/15: Merge pull request #21 from


From: ELPA Syncer
Subject: [elpa] externals/bnf-mode 3a9200cb0b 06/15: Merge pull request #21 from sergeyklay/feature/build-matrix
Date: Wed, 7 Dec 2022 19:57:25 -0500 (EST)

branch: externals/bnf-mode
commit 3a9200cb0b339038c647952539c6d925dc8ab3e8
Merge: 31b5fa2fd6 bc8110a0f7
Author: Serghei Iakovlev <egrep@protonmail.ch>
Commit: GitHub <noreply@github.com>

    Merge pull request #21 from sergeyklay/feature/build-matrix
    
    Update the list of Emacs versions for CI/CD
---
 .github/workflows/build.yml   | 29 ++++++++++++++++++++++-------
 .github/workflows/release.yml | 35 ++++++++++++++++++++++++++---------
 2 files changed, 48 insertions(+), 16 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2557b2c573..856dd9406d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -36,15 +36,16 @@ jobs:
 
       matrix:
         emacs_version:
-          - '24.3'
-          - '24.4'
-          - '24.5'
           - '25.1'
           - '25.2'
           - '25.3'
           - '26.1'
           - '26.2'
           - '26.3'
+          - '27.1'
+          - '27.2'
+          - '28.1'
+          - '28.2'
           - snapshot
         include:
           - emacs_version: snapshot
@@ -52,7 +53,7 @@ jobs:
 
     steps:
       - name: Checkout Code
-        uses: actions/checkout@v2-beta
+        uses: actions/checkout@v3
         with:
           fetch-depth: 5
 
@@ -61,13 +62,27 @@ jobs:
         with:
           version: ${{ matrix.emacs_version }}
 
+      - uses: actions/cache@v3
+        id: cache-cask-packages
+        with:
+          path: .cask
+          key: cask-packages-${{ matrix.emacs_version }}-${{ 
hashFiles('**/Cask') }}
+
+      - uses: actions/cache@v3
+        id: cache-cask-executable
+        with:
+          path: ~/.cask
+          key: cask-executable-${{ matrix.emacs_version }}
+
       - name: Setup Cask
-        run: git clone https://github.com/cask/cask ~/.cask
+        uses: cask/setup-cask@master
+        if: steps.cache-cask-executable.outputs.cache-hit != 'true'
+        with:
+          version: snapshot
 
       - name: Set Environment Variables
         run: |
           echo "$HOME/.cask/bin" >> $GITHUB_PATH
-
           if [ "${{ matrix.emacs_version }}" != "snapshot" ]; then
             echo UNDERCOVER_FORCE=1 >> $GITHUB_ENV
           fi
@@ -76,13 +91,13 @@ jobs:
         run: make help
 
       - name: Initialize the Project
+        if: steps.cache-cask-packages.outputs.cache-hit != 'true'
         run: make init
 
       - name: Byte Compile BNF Mode
         run: make build
 
       - name: Check for Errors in the Documentation
-        if: matrix.emacs_version >= '25.1'
         run: make checkdoc
 
       - name: Run Unit Tests
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 71b2c0cc49..5267df4754 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -29,22 +29,38 @@ jobs:
 
     steps:
       - name: Checkout Code
-        uses: actions/checkout@v2-beta
+        uses: actions/checkout@v3
         with:
           fetch-depth: 1
 
       - name: Setup GNU Emacs
         uses: purcell/setup-emacs@master
         with:
-          version: 26.3
+          version: 28.2
+
+      - uses: actions/cache@v3
+        id: cache-cask-packages
+        with:
+          path: .cask
+          key: cask-packages-${{ matrix.emacs_version }}-${{ 
hashFiles('**/Cask') }}
+
+      - uses: actions/cache@v3
+        id: cache-cask-executable
+        with:
+          path: ~/.cask
+          key: cask-executable-${{ matrix.emacs_version }}
 
       - name: Setup Cask
-        run: git clone https://github.com/cask/cask ~/.cask
+        uses: cask/setup-cask@master
+        if: steps.cache-cask-executable.outputs.cache-hit != 'true'
+        with:
+          version: snapshot
 
       - name: Set Environment Variables
         run: |
           echo "$HOME/.cask/bin" >> $GITHUB_PATH
           echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
+          echo DEBIAN_FRONTEND=noninteractive >> $GITHUB_ENV
 
       - name: Common settings
         run: |
@@ -60,13 +76,14 @@ jobs:
           sudo rm -f /etc/apt/sources.list.d/azure*.list
 
           sudo apt-get update --quiet --yes 1>/dev/null
-          sudo apt-get install texinfo
+          sudo apt-get install --no-install-recommends -q -y texinfo pandoc
 
-          _repo=https://github.com/jgm/pandoc
-          wget -q "$_repo/releases/download/2.9.1.1/pandoc-2.9.1.1-1-amd64.deb"
-          sudo dpkg -i pandoc-2.7.2-1-amd64.deb
+          # _repo=https://github.com/jgm/pandoc
+          # wget -q "$_repo/releases/download/2.19.2/pandoc-2.19.2-1-amd64.deb"
+          # sudo dpkg -i pandoc-2.19.2-1-amd64.deb
 
       - name: Initialize the Project
+        if: steps.cache-cask-packages.outputs.cache-hit != 'true'
         run: make init
 
       - name: Build Package
@@ -79,7 +96,7 @@ jobs:
 
       - name: Create Release
         id: create_release
-        uses: actions/create-release@v1.0.0
+        uses: actions/create-release@v1
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         with:
@@ -90,7 +107,7 @@ jobs:
 
       - name: Upload Release Asset
         id: upload-release-asset
-        uses: actions/upload-release-asset@v1.0.1
+        uses: actions/upload-release-asset@v1
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         with:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]