Skip to content

First build of continuous integration for emacs-libvterm #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# emacs-libvterm CI

name: vterm-continuous-integration

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the vterm-ci branch.
on:
push:
branches: [ vterm-ci ]
pull_request:
branches: [ vterm-ci ]

jobs:
## Build for ubuntu and macos
build:
strategy:
matrix:
# The types of runner that the job will run on
os: [ ubuntu-latest, ubuntu-16.04, macos-latest ]

runs-on: ${{ matrix.os }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2

# Only install for ubuntu
- name: Installing dependencies
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-16.04' }}
env:
PACKAGES: libtool-bin
run: sudo apt install ${PACKAGES}

# Create the build dir
- name: Building make env
run: |
mkdir Build
git config --global advice.detachedHead false

# Runs cmake
- name: Running cmake
run: |
cd Build
cmake ..
cd ..

# Runs make
- name: Running make
run: |
cd Build
make
cd ..