Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
9d15385e
Commit
9d15385e
authored
Nov 05, 2019
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch from Travis CI to GitHub Actions
parent
eebe4142
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
67 deletions
+49
-67
.github/workflows/test.yaml
+49
-0
.travis.yml
+0
-67
No files found.
.github/workflows/test.yaml
0 → 100644
View file @
9d15385e
name
:
Test
on
:
push
jobs
:
test
:
runs-on
:
${{ matrix.os }}
strategy
:
matrix
:
os
:
[
ubuntu-18.04
,
macOS-10.14
]
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Install Dependencies
run
:
|
brew install haskell-stack shunit2 icarus-verilog || ls
sudo apt-get install -y haskell-stack shunit2 flex bison autoconf gperf || ls
-
name
:
Cache iverilog
uses
:
actions/cache@v1
with
:
path
:
~/.local
key
:
${{ runner.OS }}-iverilog-10-2
restore-keys
:
${{ runner.OS }}-iverilog-10-2
-
name
:
Install iverilog
run
:
|
if [ "${{ runner.OS }}" = "Linux" ]; then
if [ ! -e "$HOME/.local/bin/iverilog" ]; then
curl --retry-max-time 60 -L https://github.com/steveicarus/iverilog/archive/v10_2.tar.gz > iverilog.tar.gz
tar -xzf iverilog.tar.gz
cd iverilog-10_2
autoconf
./configure --prefix=$HOME/.local
make
make install
cd ..
fi
fi
-
name
:
Cache Build
uses
:
actions/cache@v1
with
:
path
:
~/.stack
key
:
${{ runner.OS }}-${{ hashFiles('**/stack.yaml') }}-${{ hashFiles('**/sv2v.cabal') }}
restore-keys
:
|
${{ runner.OS }}-${{ hashFiles('**/stack.yaml') }}-${{ hashFiles('**/sv2v.cabal') }}
${{ runner.OS }}-${{ hashFiles('**/stack.yaml') }}-
${{ runner.OS }}-
-
name
:
Build
run
:
make
-
name
:
Test
run
:
|
export PATH="$PATH:$HOME/.local/bin"
make test
.travis.yml
deleted
100644 → 0
View file @
eebe4142
language
:
generic
matrix
:
include
:
-
os
:
linux
dist
:
xenial
-
os
:
osx
osx_image
:
xcode11
cache
:
directories
:
-
$HOME/.stack
-
$HOME/.local
addons
:
apt
:
packages
:
-
shunit2
# for stack
-
libgmp-dev
# for iverilog
-
flex
-
bison
-
autoconf
-
gperf
homebrew
:
packages
:
-
haskell-stack
-
shunit2
-
icarus-verilog
before_install
:
-
|
set -ex
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
orig_pwd=$PWD
mkdir -p ~/.local/bin
export PATH=$HOME/.local/bin:$PATH
# install the latest version of stack
if [ ! -e "$HOME/.local/bin/stack" ]; then
# based on: https://raw.githubusercontent.com/commercialhaskell/stack/stable/doc/travis-simple.yml
travis_retry curl --retry-max-time 60 -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz > stack.tar.gz
tar -xzf stack.tar.gz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
fi
# install iverilog 10.2
if [ ! -e "$HOME/.local/bin/iverilog" ]; then
travis_retry curl --retry-max-time 60 -L https://github.com/steveicarus/iverilog/archive/v10_2.tar.gz > v10_2.tar.gz
tar -xzf v10_2.tar.gz
cd iverilog-10_2
autoconf
./configure --prefix=$HOME/.local
make
make install
cd ..
fi
cd $orig_pwd
fi
set +ex
-
which stack iverilog shunit2
-
stack --numeric-version
-
iverilog -V 2> /dev/null | head -n 1
install
:
make
script
:
make test
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment