Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit 90c9f6e

Browse files
committed
Build on GitHub actions
1 parent 32c1b7d commit 90c9f6e

File tree

2 files changed

+59
-22
lines changed

2 files changed

+59
-22
lines changed

.github/workflows/main.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
schedule:
8+
# build at least once a month
9+
- cron: '0 0 1 * *'
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
include:
16+
- ARCH: x86_64
17+
DOCKER_IMAGE: quay.io/appimage/appimagebuild
18+
- ARCH: i686
19+
DOCKER_IMAGE: quay.io/appimage/appimagebuild-i386
20+
fail-fast: false
21+
22+
name: ${{ matrix.BUILD_TYPE }} ${{ matrix.ARCH }}
23+
runs-on: ubuntu-latest
24+
25+
env:
26+
ARCH: ${{ matrix.ARCH }}
27+
DOCKER_IMAGE: ${{ matrix.DOCKER_IMAGE }}
28+
29+
steps:
30+
- uses: actions/checkout@v2
31+
with:
32+
submodules: recursive
33+
34+
- name: Build
35+
run: docker run --rm -it -e ARCH -v "$PWD":/ws -w /ws "$DOCKER_IMAGE" /bin/bash -xe ./generate-plugin-script.sh
36+
37+
- name: Archive artifacts
38+
uses: actions/upload-artifact@v2
39+
with:
40+
name: plugin script
41+
path: linuxdeploy-plugin-checkrt-"$ARCH".sh
42+
43+
upload:
44+
name: Create release and upload artifacts
45+
needs:
46+
- build-and-test
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Download artifacts
50+
uses: actions/download-artifact@v2
51+
- name: Inspect directory after downloading artifacts
52+
run: ls -alFR
53+
- name: Create release and upload artifacts
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
run: |
57+
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
58+
chmod +x pyuploadtool-x86_64.AppImage
59+
./pyuploadtool-x86_64.AppImage **/linuxdeploy*.AppImage*

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)