mirror of https://github.com/YosysHQ/abc.git
Merge pull request #151 from sterin/master
Build CMake on GitHub Actions
This commit is contained in:
commit
0b4350a0ee
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
|
||||
env:
|
||||
MAKE_ARGS: ${{ matrix.use_namespace && '-DABC_USE_NAMESPACE=ON' || '' }}
|
||||
CMAKE_ARGS: ${{ matrix.use_namespace && '-DABC_USE_NAMESPACE=xxx' || '' }}
|
||||
DEMO_ARGS: ${{ matrix.use_namespace && '-DABC_NAMESPACE=xxx' || '' }}
|
||||
DEMO_GCC: ${{ matrix.use_namespace && 'g++ -x c++' || 'gcc' }}
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
|
||||
- name: Configure CMake
|
||||
run: |
|
||||
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -B build
|
||||
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ${CMAKE_ARGS} -B build
|
||||
|
||||
- name: Build CMake
|
||||
run: |
|
||||
|
|
@ -53,7 +53,7 @@ jobs:
|
|||
- name: Stage Executable
|
||||
run: |
|
||||
mkdir staging
|
||||
cp abc libabc.a staging/
|
||||
cp build/abc build/libabc.a staging/
|
||||
|
||||
- name: Upload pacakge artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
|
|
|
|||
|
|
@ -47,9 +47,14 @@ if(ABC_USE_NAMESPACE)
|
|||
set(ABC_USE_NAMESPACE_FLAGS "ABC_USE_NAMESPACE=${ABC_USE_NAMESPACE}")
|
||||
endif()
|
||||
|
||||
if( APPLE )
|
||||
set(make_env ${CMAKE_COMMAND} -E env SDKROOT=${CMAKE_OSX_SYSROOT})
|
||||
endif()
|
||||
|
||||
# run make to extract compiler options, linker options and list of source files
|
||||
execute_process(
|
||||
COMMAND
|
||||
${make_env}
|
||||
make
|
||||
${ABC_READLINE_FLAGS}
|
||||
${ABC_USE_NAMESPACE_FLAGS}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
[](https://github.com/sterin/abc/actions/workflows/build-posix.yml)
|
||||
[](https://github.com/sterin/abc/actions/workflows/build-windows.yml)
|
||||
[](https://github.com/berkeley-abc/abc/actions/workflows/build-posix.yml)
|
||||
[](https://github.com/berkeley-abc/abc/actions/workflows/build-windows.yml)
|
||||
[](https://github.com/berkeley-abc/abc/actions/workflows/build-posix-cmake.yml)
|
||||
|
||||
# ABC: System for Sequential Logic Synthesis and Formal Verification
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue