mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +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:
|
||||
BUILD_TYPE: Debug
|
||||
BUILD_PARALLEL: 3
|
||||
|
||||
jobs:
|
||||
build-generic-toolchain:
|
||||
@@ -118,7 +117,7 @@ jobs:
|
||||
|
||||
- name: Build iso
|
||||
# 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
|
||||
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:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
branches: ["main"]
|
||||
|
||||
env:
|
||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||
BUILD_TYPE: Debug
|
||||
TEST_MODE: UNIT
|
||||
BUILD_PARALLEL: 3
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -35,7 +34,7 @@ jobs:
|
||||
|
||||
- name: Build
|
||||
# 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
|
||||
# Execute tests defined by the CMake configuration.
|
||||
|
||||
@@ -1,19 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$FICUS_ROOT" ]; then
|
||||
echo "$FICUS_ROOT" is blank
|
||||
echo "$FICUS_ROOT" is blank
|
||||
fi
|
||||
|
||||
export PREFIX="$FICUS_ROOT/toolchain/gcc-x86_64-ficus-prefix/"
|
||||
export TARGET=x86_64-ficus
|
||||
export PATH="$PREFIX/bin:$PATH"
|
||||
|
||||
if [ -z "${BUILD_PARALLEL}" ]
|
||||
then
|
||||
if [ -z "${BUILD_PARALLEL}" ]; then
|
||||
export BUILD_PARALLEL=$(nproc)
|
||||
fi
|
||||
|
||||
if [ -z "${BUILD_PARALLEL}" ]
|
||||
then
|
||||
export BUILD_PARALLEL=$BUILD_PARALLEL
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user