-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from fpco/feature/github-actions
Switched travis to github-actions
- Loading branch information
Showing
14 changed files
with
81 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
jobs: | ||
build: | ||
name: ${{ matrix.os }}-stack-${{ matrix.stackage }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['ubuntu-latest', 'macos-latest'] | ||
stackage: ['nightly', 'lts-21', 'lts-20'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: haskell/actions/setup@v2 | ||
with: | ||
enable-stack: true | ||
stack-no-global: true | ||
- name: Install packages | ||
run: | | ||
if [ ${{ matrix.os }} == "ubuntu-latest" ] ; then | ||
sudo apt-get update -qq && sudo apt-get install -y gobjc++ libgnustep-base-dev libgsl-dev | ||
else | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
brew install gsl || true | ||
fi | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.stack | ||
key: stack-${{ matrix.os }}-${{ matrix.stackage }}-${{ hashFiles('stack.yaml') }} | ||
- name: Build | ||
run: | | ||
if [ ${{ matrix.os }} == "ubuntu-latest" ] ; then | ||
stack build --stack-yaml stack-${{ matrix.stackage }}.yaml --flag inline-c:gsl-example --flag inline-c-cpp:std-vector-example | ||
else | ||
stack build --stack-yaml stack-${{ matrix.stackage }}.yaml --flag inline-c-cpp:std-vector-example | ||
fi | ||
- name: Test | ||
run: | | ||
if [ ${{ matrix.os }} == "ubuntu-latest" ] ; then | ||
stack test --stack-yaml stack-${{ matrix.stackage }}.yaml --flag inline-c:gsl-example --flag inline-c-cpp:std-vector-example | ||
else | ||
stack test --stack-yaml stack-${{ matrix.stackage }}.yaml --flag inline-c-cpp:std-vector-example | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[![Build Status](https://travis-ci.org/fpco/inline-c.svg?branch=master)](https://travis-ci.org/fpco/inline-c) | ||
[![Build Status](https://github.com/fpco/inline-c/actions/workflows/ci.yaml/badge.svg?branch=master)](https://github.com/fpco/inline-c/actions) | ||
|
||
See READMEs for `inline-c` and `inline-c-cpp`. | ||
|
||
## Authors | ||
|
||
`inline-c` was written by [Francesco Mazzoli](https://github.com/bitonic), with contributions from Mathieu Boespflug, [Junji Hashimoto](https://github.com/junjihashimoto), and [Robert Hensing](https://github.com/roberth). | ||
|
||
It is now maintained by [Junji Hashimoto](https://github.com/junjihashimoto). | ||
It is now maintained by [Junji Hashimoto](https://github.com/junjihashimoto). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resolver: lts-20.26 | ||
packages: | ||
- inline-c | ||
- inline-c-cpp | ||
- inline-c-objc | ||
- sample-cabal-project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resolver: lts-21.13 | ||
packages: | ||
- inline-c | ||
- inline-c-cpp | ||
- inline-c-objc | ||
- sample-cabal-project |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resolver: nightly-2023-09-24 | ||
packages: | ||
- inline-c | ||
- inline-c-cpp | ||
- inline-c-objc | ||
- sample-cabal-project |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
stack-lts-21.yaml |