<commit_before>#!/usr/bin/env bash

# This script is run when CI system first starts up.
# Since it sets many env variables needed by the caller, it should be run
# with 'source', not in a separate shell.

# Figure out the platform
if [[ $$RUNNER_OS == macOS ]] ; then
    export ARCH=macosx
elif [[ $RUNNER_OS == Linux ]] ; then
    export ARCH=linux64
elif [[ $RUNNER_OS == Windows ]] ; then
    export ARCH=windows64
elif [[ `uname -m` == aarch64 ]] ; then
    export ARCH=aarch64
else
    export ARCH=unknown
fi
export PLATFORM=$ARCH

if [[ "${DEBUG:=0}" != "0" ]] ; then
    export PLATFORM=${PLATFORM}.debug
fi

echo "Architecture is $ARCH"
echo "Build platform name is $PLATFORM"

# Environment variables we always need
export PATH=/usr/local/bin/_ccache:/usr/lib/ccache:$PATH
export USE_CCACHE=${USE_CCACHE:=1}
export CCACHE_CPP2=<commit_msg>CI script typo kept mac from recognizing ARCH properly (#2967)<commit_after>#!/usr/bin/env bash

# This script is run when CI system first starts up.
# Since it sets many env variables needed by the caller, it should be run
# with 'source', not in a separate shell.

# Figure out the platform
if [[ $RUNNER_OS == macOS ]] ; then
    export ARCH=macosx
elif [[ $RUNNER_OS == Linux ]] ; then
    export ARCH=linux64
elif [[ $RUNNER_OS == Windows ]] ; then
    export ARCH=windows64
elif [[ `uname -m` == aarch64 ]] ; then
    export ARCH=aarch64
else
    export ARCH=unknown
    exit -1
fi
export PLATFORM=$ARCH

if [[ "${DEBUG:=0}" != "0" ]] ; then
    export PLATFORM=${PLATFORM}.debug
fi

echo "Architecture is $ARCH"
echo "Build platform name is $PLATFORM"

# Environment variables we always need
export PATH=/usr/local/bin/_ccache:/usr/lib/ccache:$PATH
export USE_CCACHE=${USE_CCACHE:=1}
export CCACHE_CPP2=
{'fraction_non_alphanumeric': 0.12215909090909091, 'fraction_numerical': 0.016477272727272726, 'mean_word_length': 4.134110787172012, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2116582', 'n_tokens_mistral': 616, 'n_tokens_neox': 588, 'n_words': 202}