Skip to content

Commit 062715f

Browse files
committed
Merge branch 'ci-release' into ci
2 parents 6b30ec0 + 3817642 commit 062715f

3 files changed

Lines changed: 103 additions & 0 deletions

File tree

File renamed without changes.

.github/workflows/appimage.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: AppImage build
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: 'v0.6'
7+
8+
jobs:
9+
build-appimage:
10+
11+
runs-on: ubuntu-18.04
12+
13+
steps:
14+
- name: Remove prev tag
15+
if: ${{ github.ref == 'refs/heads/ci' }}
16+
uses: actions/github-script@v3
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
script: |
20+
try {
21+
await github.git.deleteRef({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
ref: "tags/continuous"
25+
})
26+
} catch (e) {
27+
console.log("The continuous doesn't exist yet: " + e)
28+
}
29+
- uses: actions/checkout@v2
30+
- name: Install apt dependencies
31+
run: |
32+
sudo apt-get install -yq --no-install-suggests --no-install-recommends \
33+
build-essential libcap-dev libssl-dev python-all-dev \
34+
debhelper dh-python python-stdeb
35+
- name: Build deb
36+
id: deb
37+
run: |
38+
python setup.py --command-packages=stdeb.command bdist_deb
39+
echo "::set-output name=asset_path::deb_dist/*.deb"
40+
- name: Build AppImage
41+
id: appimage
42+
run: |
43+
buildscripts/appimage.sh
44+
echo "::set-output name=asset_path::out/*.AppImage*"
45+
- name: Checksums
46+
run: |
47+
sha256sum ${{ steps.deb.outputs.asset_path }} >> checksum.txt
48+
sha256sum ${{ steps.appimage.outputs.asset_path }} >> checksum.txt
49+
cut -d '/' -f 2 checksum.txt >> body.txt
50+
cut -d ' ' -f 1 checksum.txt >> body.txt
51+
- name: Release Continuous
52+
if: ${{ github.ref == 'refs/heads/ci' }}
53+
uses: softprops/action-gh-release@master
54+
with:
55+
prerelease: true
56+
tag_name: continuous
57+
target_commitish: ${{ github.sha }}
58+
body_path: body.txt
59+
append_body: true
60+
files: |
61+
${{ steps.deb.outputs.asset_path }}
62+
${{ steps.appimage.outputs.asset_path }}
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/winebuild.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Windows 32bit exe
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: 'v0.6'
7+
8+
jobs:
9+
build-exe:
10+
11+
runs-on: ubuntu-18.04
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Install apt dependencies
16+
run: |
17+
sudo dpkg --add-architecture i386
18+
sudo apt-get update
19+
sudo apt-get install -yq --no-install-recommends \
20+
build-essential libcap-dev libssl-dev python-all-dev \
21+
wine-stable winetricks wine32 wine64 mingw-w64 xvfb
22+
- name: Build
23+
id: build
24+
run: |
25+
xvfb-run i386 buildscripts/winbuild.sh
26+
echo "::set-output name=asset_path::packages/pyinstaller/dist/*.exe"
27+
sha256sum ${{ steps.build.outputs.asset_path }} >> checksum.txt
28+
- name: Release Continuous
29+
if: ${{ github.ref == 'refs/heads/ci' }}
30+
uses: softprops/action-gh-release@master
31+
with:
32+
prerelease: true
33+
tag_name: continuous
34+
target_commitish: ${{ github.sha }}
35+
body_path: checksum.txt
36+
append_body: true
37+
files: ${{ steps.build.outputs.asset_path }}
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)