-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
177 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
name: 'TRIK toolchain with tests and no Python on Ubuntu Latest' | ||
on: | ||
push: | ||
branches: | ||
pull_request: | ||
branches: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
trik-toolchain-tests-no-python: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} # to force import of ~/.bash_profile | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
steps: | ||
- name: Install TRIK toolchain | ||
run: | | ||
curl -O https://dl.trikset.com/distro/latest-full/trik-sdk-x86_64-arm926ejse-toolchain-trik-nodistro.0.sh | ||
chmod +x ./trik-sdk-x86_64-arm926ejse-toolchain-trik-nodistro.0.sh | ||
./trik-sdk-x86_64-arm926ejse-toolchain-trik-nodistro.0.sh -y | ||
- name: Install QEMU with binfmt | ||
run: | | ||
sudo apt-get install qemu-user-binfmt | ||
- name: Configure git | ||
run: | | ||
git --version | ||
git config --global core.symlinks true | ||
git config --global core.autocrlf false | ||
#prepare for actions/checkout, otherwise it fails | ||
echo "LC_ALL=en_US.utf8" >> $GITHUB_ENV | ||
echo "$(dirname $(realpath $(which git)))" >> $GITHUB_PATH | ||
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV | ||
echo "PERL5LIB=$PERL5LIB" >> $GITHUB_ENV | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
submodules: recursive | ||
|
||
- name: Use ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ github.workflow }} | ||
|
||
- name: Check available tools | ||
run: | | ||
set -xeo pipefail | ||
. /opt/trik-sdk/environment-setup-arm926ejse-oe-linux-gnueabi | ||
uname -a | ||
rsync --version | ||
qmake --version && qmake -query | ||
python3 --version | ||
echo $CXX | ||
$CXX --version | ||
ccache --version | ||
- name: QMake | ||
timeout-minutes: 1 | ||
run: | | ||
. /opt/trik-sdk/environment-setup-arm926ejse-oe-linux-gnueabi | ||
qmake CONFIG+=release CONFIG+=tests CONFIG+=noPch CONFIG+=ccache \ | ||
CONFIG+=trik_not_brick CONFIG+=trik_nopython \ | ||
"$GITHUB_WORKSPACE/" | ||
- name: QMake all | ||
timeout-minutes: 3 | ||
run: | | ||
. /opt/trik-sdk/environment-setup-arm926ejse-oe-linux-gnueabi | ||
make -j $(nproc) qmake_all | ||
- name: Make all | ||
timeout-minutes: 10 | ||
run: | | ||
. /opt/trik-sdk/environment-setup-arm926ejse-oe-linux-gnueabi | ||
make -j $(nproc) all | ||
- name: Unit tests | ||
timeout-minutes: 5 | ||
run: | | ||
. /opt/trik-sdk/environment-setup-arm926ejse-oe-linux-gnueabi | ||
# export TRIK_PYTHONPATH=$(python3 -c "import sys; import os; print(os.pathsep.join(sys.path))") | ||
# export PYTHONVERBOSE=2 | ||
# export PYTHONDEBUG=2 | ||
# export PYTHONMALLOC=malloc_debug | ||
# export PYTHONFAULTHANDLER=1 | ||
# export PYTHONDEVMODE=1 #only from 3.7, overrides PYTHONMALLOC and some other | ||
export QEMU_LD_PREFIX=/opt/trik-sdk/sysroots/arm926ejse-oe-linux-gnueabi/ | ||
env | sort | ||
make -k check TESTARGS="-platform offscreen" |
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,79 @@ | ||
name: 'TRIK toolchain on Ubuntu Latest' | ||
on: | ||
push: | ||
branches: | ||
pull_request: | ||
branches: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
trik-toolchain: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} # to force import of ~/.bash_profile | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
steps: | ||
- name: Install TRIK toolchain | ||
run: | | ||
curl -O https://dl.trikset.com/distro/latest-full/trik-sdk-x86_64-arm926ejse-toolchain-trik-nodistro.0.sh | ||
chmod +x ./trik-sdk-x86_64-arm926ejse-toolchain-trik-nodistro.0.sh | ||
./trik-sdk-x86_64-arm926ejse-toolchain-trik-nodistro.0.sh -y | ||
- name: Configure git | ||
run: | | ||
git --version | ||
git config --global core.symlinks true | ||
git config --global core.autocrlf false | ||
#prepare for actions/checkout, otherwise it fails | ||
echo "LC_ALL=en_US.utf8" >> $GITHUB_ENV | ||
echo "$(dirname $(realpath $(which git)))" >> $GITHUB_PATH | ||
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV | ||
echo "PERL5LIB=$PERL5LIB" >> $GITHUB_ENV | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
submodules: recursive | ||
|
||
- name: Use ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ github.workflow }} | ||
|
||
- name: Check available tools | ||
run: | | ||
set -xeo pipefail | ||
. /opt/trik-sdk/environment-setup-arm926ejse-oe-linux-gnueabi | ||
uname -a | ||
rsync --version | ||
qmake --version && qmake -query | ||
python3 --version | ||
echo $CXX | ||
$CXX --version | ||
ccache --version | ||
- name: QMake | ||
timeout-minutes: 1 | ||
run: | | ||
. /opt/trik-sdk/environment-setup-arm926ejse-oe-linux-gnueabi | ||
qmake CONFIG+=release CONFIG+=noPch CONFIG+=ccache \ | ||
"$GITHUB_WORKSPACE/" | ||
- name: QMake all | ||
timeout-minutes: 3 | ||
run: | | ||
. /opt/trik-sdk/environment-setup-arm926ejse-oe-linux-gnueabi | ||
make -j $(nproc) qmake_all | ||
- name: Make all | ||
timeout-minutes: 10 | ||
run: | | ||
. /opt/trik-sdk/environment-setup-arm926ejse-oe-linux-gnueabi | ||
make -j $(nproc) all |