-
Notifications
You must be signed in to change notification settings - Fork 8
68 lines (63 loc) · 2.05 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Main pipeline
on: [push, pull_request]
env:
APPIMAGE_EXTRACT_AND_RUN: 1
TERM: xterm-256color
jobs:
test:
strategy:
fail-fast: false
matrix:
# apparently these are interpreted as floats, so we have to wrap them in quotes
PYTHON_VERSION: ["3.7", "3.8", "3.9", "3.10"]
name: Test against Python ${{ matrix.PYTHON_VERSION }}
runs-on: ubuntu-latest
env:
PYTHON: python${{ matrix.PYTHON_VERSION }}
steps:
- name: Install Python ${{ matrix.PYTHON_VERSION }}
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
python${{ matrix.PYTHON_VERSION }}-minimal \
python${{ matrix.PYTHON_VERSION }}-venv
- uses: actions/checkout@v2
- name: Build example projects
run: bash -xe ci/build-example-projects.sh
appimage:
strategy:
fail-fast: false
matrix:
ARCH: [x86_64, i386]
name: Build AppImage for ${{ matrix.ARCH }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build AppImage
run: |
export ARCH="${{ matrix.ARCH }}"
bash -xe ci/build-appimage.sh
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: AppImage ${{ matrix.ARCH }}
path: appimagecraft*.AppImage*
upload:
name: Create release and upload artifacts
runs-on: ubuntu-latest
needs:
- test
- appimage
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
- name: Inspect directory after downloading artifacts
run: ls -alFR
- name: Create release and upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage **/appimagecraft*.AppImage*