Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
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
abc
Commits
5fc7e6aa
Commit
5fc7e6aa
authored
Jan 22, 2022
by
Baruch Sterin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build CMake on GitHub Actions
parent
554a1693
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
0 deletions
+62
-0
.github/disabled-workflows/build-posix.yml
+0
-0
.github/disabled-workflows/build-windows.yml
+0
-0
.github/workflows/build-posix-cmake.yml
+62
-0
No files found.
.github/workflows/build-posix.yml
→
.github/
disabled-
workflows/build-posix.yml
View file @
5fc7e6aa
File moved
.github/workflows/build-windows.yml
→
.github/
disabled-
workflows/build-windows.yml
View file @
5fc7e6aa
File moved
.github/workflows/build-posix-cmake.yml
0 → 100644
View file @
5fc7e6aa
on
:
[
push
]
jobs
:
build-posix
:
strategy
:
matrix
:
os
:
[
macos-latest
,
ubuntu-latest
]
use_namespace
:
[
false
,
true
]
runs-on
:
${{ matrix.os }}
env
:
MAKE_ARGS
:
${{ matrix.use_namespace && '-DABC_USE_NAMESPACE=ON' || '' }}
DEMO_ARGS
:
${{ matrix.use_namespace && '-DABC_NAMESPACE=xxx' || '' }}
DEMO_GCC
:
${{ matrix.use_namespace && 'g++ -x c++' || 'gcc' }}
steps
:
-
name
:
Git Checkout
uses
:
actions/checkout@v2
with
:
submodules
:
recursive
-
name
:
Install brew dependencies
run
:
|
HOMEBREW_NO_AUTO_UPDATE=1 brew install readline
if
:
${{ contains(matrix.os, 'macos') }}
-
name
:
Install APT dependencies
run
:
|
sudo apt install -y libreadline-dev
if
:
${{ !contains(matrix.os, 'macos') }}
-
name
:
Configure CMake
run
:
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -B build
-
name
:
Build CMake
run
:
|
cmake --build build
-
name
:
Test Executable
run
:
|
./build/abc -c "r i10.aig; b; ps; b; rw -l; rw -lz; b; rw -lz; b; ps; cec"
-
name
:
Test Library
run
:
|
${DEMO_GCC} ${DEMO_ARGS} -Wall -c src/demo.c -o demo.o
g++ -o demo demo.o build/libabc.a -lm -ldl -lreadline -lpthread
./demo i10.aig
-
name
:
Stage Executable
run
:
|
mkdir staging
cp abc libabc.a staging/
-
name
:
Upload pacakge artifact
uses
:
actions/upload-artifact@v1
with
:
name
:
package
path
:
staging/
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