-
Notifications
You must be signed in to change notification settings - Fork 157
84 lines (70 loc) · 2.34 KB
/
ci.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build latest version
on: [push]
jobs:
build-macos-x86_64:
runs-on: macOS-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install create-dmg
run: brew install create-dmg
- name: Build and package
run: |
chmod +x ./building/build_macos.sh
./building/build_macos.sh x86_64
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: SciHubEVA-macOS-x86_64-latest
path: dist-macOS-x86_64/SciHubEVA-x86_64-latest.dmg
build-windows-x86_64:
runs-on: windows-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build and package
run: ./building/build_windows.ps1 x86_64
shell: powershell
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: SciHubEVA-Windows-x86_64-latest
path: dist-Windows-x86_64/SciHubEVA-x86_64-latest.exe
build-linux-x86_64:
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install system packages
run: |
sudo apt update
sudo apt install -y curl librsvg2-bin libfuse2 libgl1-mesa-dev libxcb* libxau-dev liblzma-dev libegl-dev
- name: Install appimagetool
run: |
mkdir -p $HOME/.local/bin
curl -L https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -o $HOME/.local/bin/appimagetool-x86_64.AppImage
chmod +x $HOME/.local/bin/appimagetool-x86_64.AppImage
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Build and package
run: |
chmod +x ./building/build_linux.sh
./building/build_linux.sh x86_64
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: SciHubEVA-Linux-x86_64-latest
path: dist-Linux-x86_64/SciHubEVA-x86_64-latest.AppImage