Skip to content

Switched travis to github-actions #4

Switched travis to github-actions

Switched travis to github-actions #4

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
jobs:
stack-nightly:
name: linux-stack-nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell/actions/setup@v2
with:
enable-stack: true
stack-no-global: true
- name: Install packages
run: |
sudo apt-get update -qq
sudo apt-get install -y gobjc++ libgnustep-base-dev
- uses: actions/cache@v3
with:
path: ~/.stack
key: stack-${{ hashFiles('stack.yaml') }}
- name: Build
run: stack build --stack-yaml stack-nightly.yaml --flag inline-c-cpp:std-vector-example --extra-include-dirs /usr/include/GNUstep
- name: Test
run: stack test --stack-yaml stack-nightly.yaml --flag inline-c-cpp:std-vector-example --extra-include-dirs /usr/include/GNUstep
stack-lts-21:
name: linux-stack-lts-21
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell/actions/setup@v2
with:
enable-stack: true
stack-no-global: true
- name: Install packages
run: |
sudo apt-get update -qq
sudo apt-get install -y gobjc++ libgnustep-base-dev
- uses: actions/cache@v3
with:
path: ~/.stack
key: stack-${{ hashFiles('stack-lts-21.yaml') }}
- name: Build
run: stack build --stack-yaml stack-lts-21.yaml --flag inline-c-cpp:std-vector-example --extra-include-dirs /usr/include/GNUstep
- name: Test
run: stack test --stack-yaml stack-lts-21.yaml --flag inline-c-cpp:std-vector-example --extra-include-dirs /usr/include/GNUstep
stack-lts-20:
name: linux-stack-lts-20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell/actions/setup@v2
with:
enable-stack: true
stack-no-global: true
- name: Install packages
run: |
sudo apt-get update -qq
sudo apt-get install -y gobjc++ libgnustep-base-dev
- uses: actions/cache@v3
with:
path: ~/.stack
key: stack-${{ hashFiles('stack-lts-20.yaml') }}
- name: Build
run: stack build --stack-yaml stack-lts-20.yaml --flag inline-c-cpp:std-vector-example --extra-include-dirs /usr/include/GNUstep
- name: Test
run: stack test --stack-yaml stack-lts-20.yaml --flag inline-c-cpp:std-vector-example --extra-include-dirs /usr/include/GNUstep