forked from xt-sys/xtchain
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
546d8718d2
|
|||
a65685de5c
|
|||
f9af39e058
|
20
.build.yml
20
.build.yml
@@ -1,8 +1,14 @@
|
|||||||
kind: pipeline
|
pipeline:
|
||||||
type: exec
|
build:
|
||||||
name: XT Toolchain Pipeline
|
image: codingworkshop/oscw-runner:latest
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Compile XT Toolchain
|
|
||||||
commands:
|
commands:
|
||||||
- sh build-linux.sh
|
- CORES=10 ./build-linux.sh
|
||||||
|
publish:
|
||||||
|
image: codingworkshop/oscw-runner:latest
|
||||||
|
secrets:
|
||||||
|
- OSCW_GITHUB_USERNAME
|
||||||
|
- OSCW_GITHUB_PASSWORD
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
commands:
|
||||||
|
- github_publish $OSCW_GITHUB_USERNAME $OSCW_GITHUB_PASSWORD $(ls xtchain-*-linux.tar.zst)
|
||||||
|
@@ -448,6 +448,7 @@ wine_build()
|
|||||||
cd ${WINEDIR}/build
|
cd ${WINEDIR}/build
|
||||||
../configure \
|
../configure \
|
||||||
-enable-win64 \
|
-enable-win64 \
|
||||||
|
--without-freetype \
|
||||||
--without-x
|
--without-x
|
||||||
for TOOL in winedump wmc wrc; do
|
for TOOL in winedump wmc wrc; do
|
||||||
make -j${CORES} tools/${TOOL}/all
|
make -j${CORES} tools/${TOOL}/all
|
||||||
@@ -507,16 +508,12 @@ xtchain_build()
|
|||||||
# Exit immediately on any failure
|
# Exit immediately on any failure
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Check if script launched as root
|
|
||||||
if [ "$(whoami)" = "root" ]; then
|
|
||||||
echo "This script cannot be run as root!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check number of CPU cores available
|
# Check number of CPU cores available
|
||||||
: ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)}
|
if [[ ! -n ${CORES} ]]; then
|
||||||
: ${CORES:=$(nproc 2>/dev/null)}
|
: ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)}
|
||||||
: ${CORES:=1}
|
: ${CORES:=$(nproc 2>/dev/null)}
|
||||||
|
: ${CORES:=1}
|
||||||
|
fi
|
||||||
|
|
||||||
# Create working directories
|
# Create working directories
|
||||||
mkdir -p ${BINDIR}
|
mkdir -p ${BINDIR}
|
||||||
|
@@ -6,12 +6,6 @@
|
|||||||
# DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
# DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
||||||
|
|
||||||
|
|
||||||
# Check if script launched as root
|
|
||||||
if [ "$(whoami)" = "root" ]; then
|
|
||||||
echo "This script cannot be run as root!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get the absolute path to the XTchain
|
# Get the absolute path to the XTchain
|
||||||
export XTCDIR="$(realpath $(dirname ${0}))"
|
export XTCDIR="$(realpath $(dirname ${0}))"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user