-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from Travis CI to GitHub Actions
Closes jonas#1061
- Loading branch information
Showing
5 changed files
with
74 additions
and
43 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,32 @@ | ||
name: Linux | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
compiler: [clang, gcc] | ||
tig_build: [autoconf, "config.make"] | ||
include: | ||
- name: Address Sanitizer | ||
compiler: clang | ||
tig_build: "address-sanitizer" | ||
|
||
- name: Valgrind | ||
compiler: gcc | ||
tig_build: valgrind | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Test Tig | ||
shell: 'script -q -e -c "sh {0}"' # Workaround to get a TTY, see https://github.com/gfx/example-github-actions-with-tty | ||
run: | | ||
set -ex | ||
export LANG=en_US.utf8 | ||
sudo apt update | ||
sudo DEBIAN_FRONTEND=noninteractive apt -yq install --no-install-recommends \ | ||
asciidoc valgrind xmlto | ||
CC=${{ matrix.compiler }} TIG_BUILD=${{ matrix.tig_build }} tools/travis.sh |
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,38 @@ | ||
name: macOS | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
install: | ||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
compiler: [clang, gcc] | ||
|
||
steps: | ||
- name: Patch | ||
run: | | ||
cd "$(brew --repo homebrew/core)" && patch -p1 <<\EOF | ||
diff --git a/Formula/tig.rb b/Formula/tig.rb | ||
index 2e8c125660..f76d6bca1c 100644 | ||
--- a/Formula/tig.rb | ||
+++ b/Formula/tig.rb | ||
@@ -26,9 +26,11 @@ class Tig < Formula | ||
depends_on "readline" | ||
def install | ||
+ ENV.deparallelize | ||
system "./autogen.sh" if build.head? | ||
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}" | ||
system "make" | ||
+ system "make", "test" | ||
# Ensure the configured `sysconfdir` is used during runtime by | ||
# installing in a separate step. | ||
system "make", "install", "sysconfdir=#{pkgshare}/examples" | ||
EOF | ||
- name: Install latest Tig | ||
shell: 'script -q typescript sh {0}' # Workaround to get a TTY, see https://github.com/gfx/example-github-actions-with-tty | ||
run: HOMEBREW_CC=${{ matrix.compiler }} HOMEBREW_NO_AUTO_UPDATE=1 brew install --HEAD tig |
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
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