diff --git a/.github/bin/deploy.sh b/.github/bin/deploy.sh new file mode 100755 index 00000000..36ae293d --- /dev/null +++ b/.github/bin/deploy.sh @@ -0,0 +1,28 @@ +#!/bin/bash +# $Id: deploy.sh 1227 2022-04-24 10:08:48Z mueller $ +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright 2022- by Walter F.J. Mueller + +# get environment +printenv | sort | grep "^GITHUB_" > environment.log + +# get tbfilt summary +tbfilt -all -sum -comp > tbfilt.log + +# setup list of files to deploy +echo "environment.log" > deploy.lst +echo "tbfilt.log" >> deploy.lst +find -regextype egrep -regex '.*/tb_.*_[bfsorept]sim(_.*)?\.log' |\ + sort >> deploy.lst + +# create tarball +tar -czf deploy.tgz -T deploy.lst + +# upload +curl -w "status: %{http_code} send: %{size_upload} speed: %{speed_upload}\n" \ + -F 'repo=w11' \ + -F "runnum=$GITHUB_RUN_NUMBER" \ + -F "jobid=$JOBID" \ + -F 'upfile=@deploy.tgz' \ + https://www.retro11.de/cgi-bin/upload_adeploy.cgi > deploy.log +cat deploy.log diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a9c8621..51ee575c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -# $Id: ci.yml 1223 2022-04-18 10:39:00Z mueller $ +# $Id: ci.yml 1227 2022-04-24 10:08:48Z mueller $ # SPDX-License-Identifier: GPL-3.0-or-later # Copyright 2022- by Walter F.J. Mueller @@ -17,6 +17,14 @@ jobs: - os: ubuntu-20.04 # Ub 40.4 && clang cc: clang cxx: clang++ + env: + CC: ${{ matrix.cc }} + CXX: ${{ matrix.cxx }} + BOOSTINC: /usr/include + BOOSTLIB: /usr/lib + TCLINC: /usr/include/tcl8.6 + TCLLIB: /usr/lib/x86_64-linux-gnu + TCLLIBNAME: tcl8.6 steps: - uses: actions/checkout@v3 - name: install @@ -37,16 +45,9 @@ jobs: - run: printenv | grep ^GITHUB_ | sort - name: build run: | - export CC=${{ matrix.cc }} - export CXX=${{ matrix.cxx }} export RETROBASE=$PWD export PATH=$PATH:$RETROBASE/tools/bin:. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RETROBASE/tools/lib - export BOOSTINC=/usr/include - export BOOSTLIB=/usr/lib - export TCLINC=/usr/include/tcl8.6 - export TCLLIB=/usr/lib/x86_64-linux-gnu - export TCLLIBNAME=tcl8.6 make -j 2 -C tools/src make -j 2 -C tools/src/testtclsh make all_tcl @@ -80,3 +81,9 @@ jobs: -tag sys_w11a,n4 \ -tag sys_w11a,arty tbfilt -all -sum -comp + - name: deploy + run: | + export RETROBASE=$PWD + export PATH=$PATH:$RETROBASE/tools/bin:. + export JOBID=${{ matrix.cxx }} + .github/bin/deploy.sh