-
Notifications
You must be signed in to change notification settings - Fork 57
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 #381 from vsbogd/fix-ubuntu-release
Fix release build, MacOSX build, make check on old cmake versions
- Loading branch information
Showing
9 changed files
with
101 additions
and
23 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
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,41 @@ | ||
name: ci manual | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
fail-fast: | ||
description: 'Fail the build after single job fails' | ||
required: true | ||
default: false | ||
type: boolean | ||
os: | ||
description: 'JSON array of OS to be checked' | ||
required: true | ||
default: "[\"ubuntu-20.04\", \"ubuntu-22.04\", \"macos-11\", \"macos-12\", \"macos-13\"]" | ||
type: string | ||
python-version: | ||
description: 'JSON array of Python versions to be checked' | ||
required: true | ||
default: "[\"3.7\", \"3.8\", \"3.9\", \"3.10\", \"3.11\"]" | ||
type: string | ||
cmake-version: | ||
description: 'JSON array of CMake versions to be checked' | ||
required: true | ||
default: "[\"3.15.x\"]" | ||
type: string | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: ${{ inputs.fail-fast }} | ||
matrix: | ||
os: ${{ fromJson(inputs.os) }} | ||
python-version: ${{ fromJson(inputs.python-version) }} | ||
cmake-version: ${{ fromJson(inputs.cmake-version) }} | ||
max-parallel: 5 | ||
|
||
uses: ./.github/workflows/common.yml | ||
with: | ||
os: ${{ matrix.os }} | ||
python-version: ${{ matrix.python-version }} | ||
cmake-version: ${{ matrix.cmake-version }} |
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 |
---|---|---|
|
@@ -19,6 +19,11 @@ on: | |
default: ubuntu-20.04 | ||
required: false | ||
type: string | ||
cmake-version: | ||
description: 'CMake version to use' | ||
default: 3.16.x | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
run: | ||
|
@@ -34,32 +39,63 @@ jobs: | |
toolchain: stable | ||
override: true | ||
|
||
- name: Build and test | ||
- name: Build Rust library | ||
working-directory: ./lib | ||
run: | | ||
cargo check | ||
cargo build | ||
- name: Test Rust library | ||
working-directory: ./lib | ||
run: | | ||
RUST_LOG=hyperon=debug cargo test | ||
- name: Install cbindgen | ||
uses: actions-rs/[email protected] | ||
with: | ||
command: install | ||
args: cbindgen | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Install CMake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: ${{ inputs.cmake-version }} | ||
|
||
- name: Install Conan | ||
uses: turtlebrowser/[email protected] | ||
with: | ||
version: 1.60.1 | ||
version: 1.60.2 | ||
|
||
- name: Install cbindgen | ||
uses: actions-rs/[email protected] | ||
with: | ||
command: install | ||
args: cbindgen | ||
- name: Setup Conan profile | ||
run: | | ||
conan profile new --detect default | ||
- name: Print environment | ||
run: | | ||
echo "rustc --version" | ||
rustc --version | ||
echo "cbindgen --version" | ||
cbindgen --version | ||
echo "python --version" | ||
python --version | ||
echo "conan --version" | ||
conan --version | ||
echo "conan profile show default" | ||
conan profile show default | ||
echo "gcc --version" | ||
gcc --version | ||
echo "cmake --version" | ||
cmake --version | ||
echo "make --version" | ||
make --version | ||
- name: Setup C API build | ||
run: | | ||
conan profile new --detect default | ||
mkdir -p build | ||
cd build | ||
# specify C compiler as conan could not find it automatically | ||
|
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 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