mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 08:37:51 +01:00
CI: remove build parallel
This commit is contained in:
3
.github/workflows/ficus.yml
vendored
3
.github/workflows/ficus.yml
vendored
@@ -8,7 +8,6 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: Debug
|
BUILD_TYPE: Debug
|
||||||
BUILD_PARALLEL: 3
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-generic-toolchain:
|
build-generic-toolchain:
|
||||||
@@ -118,7 +117,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build iso
|
- name: Build iso
|
||||||
# Build your program with the given configuration
|
# Build your program with the given configuration
|
||||||
run: source ${{github.workspace}}/env.sh && cmake --build ${{github.workspace}}/build --target iso --config ${{env.BUILD_TYPE}} --parallel ${{env.BUILD_PARALLEL}}
|
run: source ${{github.workspace}}/env.sh && cmake --build ${{github.workspace}}/build --target iso --config ${{env.BUILD_TYPE}} --parallel $(nproc)
|
||||||
|
|
||||||
- name: Upload isos
|
- name: Upload isos
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|||||||
7
.github/workflows/unit.yml
vendored
7
.github/workflows/unit.yml
vendored
@@ -2,15 +2,14 @@ name: Unit tests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||||
BUILD_TYPE: Debug
|
BUILD_TYPE: Debug
|
||||||
TEST_MODE: UNIT
|
TEST_MODE: UNIT
|
||||||
BUILD_PARALLEL: 3
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -35,7 +34,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
# Build your program with the given configuration
|
# Build your program with the given configuration
|
||||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel ${{env.BUILD_PARALLEL}}
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel $(nproc)
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
# Execute tests defined by the CMake configuration.
|
# Execute tests defined by the CMake configuration.
|
||||||
|
|||||||
@@ -1,19 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -z "$FICUS_ROOT" ]; then
|
if [ -z "$FICUS_ROOT" ]; then
|
||||||
echo "$FICUS_ROOT" is blank
|
echo "$FICUS_ROOT" is blank
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PREFIX="$FICUS_ROOT/toolchain/gcc-x86_64-ficus-prefix/"
|
export PREFIX="$FICUS_ROOT/toolchain/gcc-x86_64-ficus-prefix/"
|
||||||
export TARGET=x86_64-ficus
|
export TARGET=x86_64-ficus
|
||||||
export PATH="$PREFIX/bin:$PATH"
|
export PATH="$PREFIX/bin:$PATH"
|
||||||
|
|
||||||
if [ -z "${BUILD_PARALLEL}" ]
|
if [ -z "${BUILD_PARALLEL}" ]; then
|
||||||
then
|
|
||||||
export BUILD_PARALLEL=$(nproc)
|
export BUILD_PARALLEL=$(nproc)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${BUILD_PARALLEL}" ]
|
|
||||||
then
|
|
||||||
export BUILD_PARALLEL=$BUILD_PARALLEL
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user