Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Apr 12, 2023
1 parent 99c05f6 commit b78f14b
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,45 +53,3 @@ jobs:
with:
name: cyan-build-focal
path: /opt/deploy/build/

build02:
runs-on: ubuntu-18.04
name: Ubuntu 18.04
steps:
- uses: actions/checkout@v2
- name: apt update
run: sudo apt-get update
- name: apt install
run: sudo apt-get install qt5-default cmake qtbase5-dev libmagick++-dev liblcms2-dev libtiff-dev liblzma-dev zlib1g-dev libpng-dev libjpeg-dev libbz2-dev
- name: build/test/install
run: |
sudo mkdir -p /opt/deploy/tests
sudo chmod 777 /opt/deploy
export CWD=`pwd`
export COMMIT=`git rev-parse --short HEAD`
export VERSION=`cat cyan.pro | sed '/VERSION =/!d' | awk '{print $3}'`
./res/magick.sh
export PKG_CONFIG_PATH=/opt/Linux/lib/pkgconfig
cd $CWD
mkdir build && cd build
cmake -DDEPLOY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
make -j2
strip -s Cyan
make test || cp Testing/Temporary/LastTest.log /opt/deploy/tests/ && cp *.tif *.jpg /opt/deploy/tests/ && exit 1
make DESTDIR=/opt/deploy/build install
cd /opt/deploy/build
mv usr Cyan-$VERSION-$COMMIT-bionic
tar cvvzf Cyan-$VERSION-$COMMIT-bionic.tgz Cyan-$VERSION-$COMMIT-bionic
rm -rf Cyan-$VERSION-$COMMIT-bionic
- name: upload tests artifacts
if: always()
uses: actions/upload-artifact@v2
with:
name: cyan-tests-bionic
path: /opt/deploy/tests/
- name: upload build artifacts
if: always()
uses: actions/upload-artifact@v2
with:
name: cyan-build-bionic
path: /opt/deploy/build/

0 comments on commit b78f14b

Please sign in to comment.