branch: externals/csharp-mode
commit 7f39946dd568d12dbda7f8b58d3a5eb083f9e8a0
Author: Jostein Kjønigsen <jost...@kjonigsen.net>
Commit: GitHub <nore...@github.com>

    Create build.yml
    
    First attempt at a GitHub Actions template with a matrix!
---
 .github/workflows/build.yml | 55 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..382b6ca
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,55 @@
+# This is a basic workflow to help you get started with Actions
+
+name: Build & Test
+
+# Controls when the action will run. 
+on:
+  # Triggers the workflow on push or pull request events but only for the 
master branch
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+  # Allows you to run this workflow manually from the Actions tab
+  workflow_dispatch:
+
+# A workflow run is made up of one or more jobs that can run sequentially or 
in parallel
+jobs:
+  # This workflow contains a single job called "build"
+  build:
+    # The type of runner that the job will run on
+    runs-on: ubuntu-xenial
+    name: Emacs - ${{ matrix.emacs }}
+    strategy: 
+      matrix:
+        emacs:
+        - emacs-24.4-travis
+        - emacs-24.5-travis
+        - emacs-25.1-travis
+        - emacs-25.2-travis
+        - emacs-25.3-travis
+        - emacs-26.1-travis-linux-xenial
+        - emacs-26.2-travis-linux-xenial
+        - emacs-26.3-travis-linux-xenial
+        - emacs-27.1-travis-linux-xenial
+        - emacs-git-snapshot-travis-linux-xenial
+
+    # Steps represent a sequence of tasks that will be executed as part of the 
job
+    steps:
+      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can 
access it
+      - uses: actions/checkout@v2
+
+      # Runs a single command using the runners shell
+      - name: Install EVM
+        run: curl -fsSkL 
https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
+
+      - name: Install Emacs ${{ matrix.emacs }}
+        run: evm install $EVM_EMACS --use --skip
+
+      - name: Test cask
+        run: cask
+
+      - name: Run a multi-line script
+        run: |
+          emacs --version
+          make test

Reply via email to