"Fossies" - the Fresh Open Source Software Archive 
Member "texstudio-3.1.1/.github/workflows/cd.yml" (21 Feb 2021, 7070 Bytes) of package /linux/misc/texstudio-3.1.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "cd.yml":
3.1.0_vs_3.1.1.
1 name: CD
2 on:
3 - push
4
5 jobs:
6 build-linux-win:
7 name: win build (mxe)
8 runs-on: ubuntu-latest
9 steps:
10 - name: Checkout
11 uses: actions/checkout@v2
12
13 - name: Add mxe.cc repo
14 run: |
15 sudo apt-key adv \
16 --keyserver keyserver.ubuntu.com \
17 --recv-keys 86B72ED9
18 sudo add-apt-repository \
19 "deb [arch=amd64] https://pkg.mxe.cc/repos/apt `lsb_release -sc` main"
20
21 - name: Updates
22 run: sudo apt-get update
23
24 - name: Dependencies
25 run: |
26 sudo apt-get install mxe-x86-64-w64-mingw32.shared-cairo \
27 mxe-x86-64-w64-mingw32.shared-curl \
28 mxe-x86-64-w64-mingw32.shared-freetype \
29 mxe-x86-64-w64-mingw32.shared-glib \
30 mxe-x86-64-w64-mingw32.shared-jpeg \
31 mxe-x86-64-w64-mingw32.shared-lcms \
32 mxe-x86-64-w64-mingw32.shared-libpng \
33 mxe-x86-64-w64-mingw32.shared-libwebp \
34 mxe-x86-64-w64-mingw32.shared-openjpeg \
35 mxe-x86-64-w64-mingw32.shared-poppler \
36 mxe-x86-64-w64-mingw32.shared-qtbase \
37 mxe-x86-64-w64-mingw32.shared-qtdeclarative \
38 mxe-x86-64-w64-mingw32.shared-qtscript \
39 mxe-x86-64-w64-mingw32.shared-qttools \
40 mxe-x86-64-w64-mingw32.shared-tiff \
41 mxe-x86-64-w64-mingw32.shared-zlib \
42 mxe-x86-64-w64-mingw32.static-nsis
43
44 - name: Configure
45 run: |
46 MXEDIR="/usr/lib/mxe"
47 MXETARGET="x86_64-w64-mingw32.shared"
48 PATH=$PATH:${MXEDIR}/usr/bin
49 . ./.github/scripts/get-version.sh
50 sed -i win.rc -Ee "s/0,[0,]+/$(tr <<<"$TXS_VERSION" . ,),0/"
51 sed -i win.rc -e "s/git[\]0/$VERSION_NAME/"
52 $MXEDIR/usr/bin/${MXETARGET}-qmake-qt5 texstudio.pro CONFIG-=debug MXE=1 BUILD_ADWAITA=1
53
54 - name: Build
55 run: |
56 MXEDIR="/usr/lib/mxe"
57 MXETARGET="x86_64-w64-mingw32.shared"
58 PATH=$PATH:${MXEDIR}/usr/bin
59 make -j 2
60
61 - name: Package
62 id: package
63 run: |
64 MXEDIR="/usr/lib/mxe"
65 MXETARGET="x86_64-w64-mingw32.shared"
66 PATH=$PATH:${MXEDIR}/usr/bin
67 . ./.github/scripts/get-version.sh
68 .github/scripts/package_win.sh
69 echo "::set-output name=VERSION_NAME::${VERSION_NAME}"
70 echo "::set-output name=TXS_VERSION::${TXS_VERSION}"
71 echo "::set-output name=GIT_VERSION::${GIT_VERSION}"
72
73 - name: Deploy zip to Bintray
74 if: github.event_name == 'push'
75 uses: actions/upload-artifact@v2
76 with:
77 name: texstudio-win-zip
78 path: ./package-zip/texstudio-win-${{ steps.package.outputs.VERSION_NAME }}.zip
79
80 - name: Deploy as Artifact
81 if: github.event_name == 'push'
82 uses: actions/upload-artifact@v2
83 with:
84 name: texstudio-win-exe
85 path: texstudio-win-${{ steps.package.outputs.VERSION_NAME }}.exe
86
87 - name: Release exe
88 uses: softprops/action-gh-release@v1
89 if: startsWith(github.ref, 'refs/tags/')
90 with:
91 prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
92 files: |
93 texstudio-${{ steps.package.outputs.GIT_VERSION }}-win-qt5.exe
94 texstudio-${{ steps.package.outputs.GIT_VERSION }}-win-portable-qt5.zip
95 env:
96 GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
97
98
99 ###################################
100
101 build-linux-release:
102 name: linux appimage
103 runs-on: ubuntu-16.04
104 steps:
105 - name: Checkout
106 uses: actions/checkout@v2
107
108 - name: Updates
109 run: sudo apt-get update
110
111 - name: Dependencies
112 run: sudo apt-get install qtbase5-dev qt5-default qt5-qmake libqt5svg5-dev qtscript5-dev qttools5-dev libqt5svg5-dev libpoppler-qt5-dev pkg-config zlib1g-dev
113
114 - name: Configure
115 run: qmake texstudio.pro CONFIG-=debug
116
117 - name: Build
118 run: make -j 2
119
120 - name: Package
121 id: package
122 run: |
123 POPPLERDATA_VERSION="0.4.8"
124 POPPLERDATA_SUBDIR="poppler-data-${POPPLERDATA_VERSION}"
125 POPPLERDATA_FILE="poppler-data-${POPPLERDATA_VERSION}.tar.gz"
126 POPPLERDATA_URL="https://poppler.freedesktop.org/${POPPLERDATA_FILE}"
127 POPPLERDATA_SHA256="1096a18161f263cccdc6d8a2eb5548c41ff8fcf9a3609243f1b6296abdf72872"
128 . ./.github/scripts/get-version.sh
129 . ./.github/scripts/package_linux.sh
130 echo "::set-output name=VERSION_NAME::${VERSION_NAME}"
131 echo "::set-output name=VERSION::${VERSION}"
132 echo "::set-output name=TXS_VERSION::${TXS_VERSION}"
133 echo "::set-output name=GIT_VERSION::${GIT_VERSION}"
134
135 - name: Upload to Github Artifacts
136 uses: actions/upload-artifact@v2
137 with:
138 name: texstudio-linux
139 path: texstudio-linux-${{ steps.package.outputs.VERSION_NAME }}-x86_64.AppImage
140
141 - name: Release
142 uses: softprops/action-gh-release@v1
143 if: startsWith(github.ref, 'refs/tags/')
144 with:
145 prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
146 files: texstudio-${{ steps.package.outputs.GIT_VERSION }}-x86_64.AppImage
147 env:
148 GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
149
150
151 ############################
152
153 macosx-bintray:
154 name: Mac OS X (Bintray)
155 runs-on: macos-latest
156
157 steps:
158 - name: Checkout
159 uses: actions/checkout@v2
160
161 - name: Install Dependencies
162 run: |
163 # /usr/local/bin/2to3 is symlinked to the native python2 installation
164 # but prevents the homebrew install from succeeding
165 rm -f /usr/local/bin/2to3
166 brew update > brew_update.log || { echo "::error::Updating homebrew failed"; cat brew_update.log; exit 1; }
167 brew install poppler qt5
168
169 - name: Configure
170 run: /usr/local/opt/qt/bin/qmake texstudio.pro CONFIG-=debug
171
172 - name: Build
173 run: make -j 2
174
175 - name: Package
176 id: package
177 run: |
178 /usr/local/opt/qt5/bin/macdeployqt texstudio.app -dmg
179 . ./.github/scripts/get-version.sh
180 cp texstudio.dmg texstudio-${GIT_VERSION}-osx.dmg
181 mv texstudio.dmg texstudio-osx-${VERSION_NAME}.dmg
182 echo "::set-output name=VERSION_NAME::${VERSION_NAME}"
183 echo "::set-output name=TXS_VERSION::${TXS_VERSION}"
184 echo "::set-output name=GIT_VERSION::${GIT_VERSION}"
185
186 - name: Deploy to Github artifacts
187 if: github.event_name == 'push'
188 uses: actions/upload-artifact@v2
189 with:
190 name: texstudio-osx
191 path: texstudio-osx-${{ steps.package.outputs.VERSION_NAME }}.dmg
192
193 - name: Release
194 uses: softprops/action-gh-release@v1
195 if: startsWith(github.ref, 'refs/tags/')
196 with:
197 prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
198 files: texstudio-${{ steps.package.outputs.GIT_VERSION }}-osx.dmg
199 env:
200 GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
201
202
203