Skip to content

Commit f65e19e

Browse files
committed
Remove linux build
1 parent 7932d25 commit f65e19e

3 files changed

Lines changed: 20 additions & 35 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,12 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
os: [ubuntu-20.04, windows-2019, macos-11]
19+
os: [windows-2019, macos-11]
2020

2121
steps:
22-
- name: Check-out repository
22+
- name: Check-out EasyReflectometry repository
2323
uses: actions/checkout@v3
2424

25-
- name: Set up non-Python dependences (Linux)
26-
if: runner.os == 'Linux'
27-
run: |
28-
sudo apt-get -o Acquire::Retries=3 update
29-
sudo apt-get -o Acquire::Retries=3 install libxcb-xinerama0
30-
sudo apt-get -o Acquire::Retries=3 install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xfixes0
31-
sudo apt-get -o Acquire::Retries=3 install libxcb-shape0
32-
sudo apt-get -o Acquire::Retries=3 install libpulse-mainloop-glib0
33-
3425
- name: Setup Python
3526
uses: actions/setup-python@v4.5.0
3627
with:
@@ -39,9 +30,13 @@ jobs:
3930
- name: Upgrade PIP
4031
run: python -m pip install --upgrade pip
4132

42-
- name: Install with dependencies
33+
- name: Create and activate venv
4334
run: |
44-
pip install '.[ci]'
35+
python -m venv env
36+
source env/bin/activate
37+
38+
- name: Install with EasyReflectometry dependencies
39+
run: pip install '.[ci]'
4540

4641
- name: Declare env variables on push only
4742
if: github.event_name == 'push'
@@ -86,10 +81,10 @@ jobs:
8681
- name: Create freezed python app bundle
8782
run: python ${{ env.SCRIPTS_PATH }}/FreezeApp.py
8883

89-
- name: Create offline app installers from freezed app bundle
84+
- name: Create offline app installers
9085
run: python ${{ env.SCRIPTS_PATH }}/MakeInstaller.py ${{ secrets.BINARY_SIGN_WIN }} ${{ secrets.CERT_ZIP_PASS }}
9186

92-
- name: Create online app installers from freezed app bundle
87+
- name: Create online app installers
9388
if: github.event_name == 'push' && env.BRANCH_NAME == 'master'
9489
run: python ${{ env.SCRIPTS_PATH }}/MakeOnlineInstaller.py ${{ secrets.BINARY_SIGN_WIN }} ${{ secrets.CERT_ZIP_PASS }}
9590

@@ -102,41 +97,31 @@ jobs:
10297
"/Library/Application Support/VMware Tools/vmware-resolutionSet" 1920 1080
10398
system_profiler SPDisplaysDataType | grep Resolution
10499
105-
- name: Set up screen recording dependencies (Linux)
106-
if: runner.os == 'Linux'
107-
run: |
108-
sudo apt-get install libxkbcommon-x11-0
109-
Xvfb :0 -screen 0 1920x1080x24 -ac &
110-
echo "DISPLAY=:0" >> $GITHUB_ENV
111-
112100
- name: Set up screen recording dependencies (Windows)
113101
if: runner.os == 'Windows'
114102
run: |
115103
Set-DisplayResolution -Width 1920 -Height 1080 -Force
116104
Get-DisplayResolution
117105
118-
- name: Make dir for .desktop file (Linux)
119-
if: runner.os == 'Linux'
120-
run: mkdir -p ~/.local/share/applications/
121-
122106
- name: Install app
123107
run: python ${{ env.SCRIPTS_PATH }}/InstallApp.py
124108

125-
- name: Run app in testmode, record screen and quit
109+
- name: Run app in testmode and quit
126110
run: python ${{ env.SCRIPTS_PATH }}/RunApp.py --testmode
127111

128-
# #- name: Rename test videos
129-
# # run: poetry run python ${{ env.SCRIPTS_PATH }}/CreateTestVideos.py ${{ env.BRANCH_NAME }}
130-
131112
- name: Create zip archive of offline app installer
132113
run: python ${{ env.SCRIPTS_PATH }}/ZipArtifacts.py ${{ env.BRANCH_NAME }}
133114

134-
- uses: actions/upload-artifact@v3
115+
- name: Upload installer to artifacts
116+
uses: actions/upload-artifact@v3
117+
if: runner.os == 'macOS'
135118
with:
136119
name: macOS
137120
path: "${{ env.DISTRIBUTION_PATH }}/${{ env.APP_NAME }}_macOS_*.zip"
138121

139-
- uses: actions/upload-artifact@v3
122+
- name: Upload installer to artifacts
123+
uses: actions/upload-artifact@v3
124+
if: runner.os == 'Windows'
140125
with:
141126
name: windows
142127
path: "${{ env.DISTRIBUTION_PATH }}/${{ env.APP_NAME }}_Windows_*.zip"

‎EasyReflectometryApp/main.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import EasyReflectometryApp
1818
import toml
1919
import easyApp
20-
from easyApp.Logic.Maintenance import Updater
20+
# from easyApp.Logic.Maintenance import Updater
2121
# from easyApp.Logic.Translate import Translator
2222
from EasyReflectometryApp.Logic.PyQmlProxy import PyQmlProxy
2323

@@ -95,7 +95,7 @@ def main():
9595
engine.rootContext().setContextProperty('_isSystemThemeDark', isDark)
9696

9797
# Register types to be instantiated in QML
98-
qmlRegisterType(Updater, 'easyApp.Logic.Maintenance', 1, 0, 'Updater')
98+
# qmlRegisterType(Updater, 'easyApp.Logic.Maintenance', 1, 0, 'Updater')
9999

100100
# Add paths to search for installed modules
101101
engine.addImportPath(easyApp_path)

‎LICENSE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2021-2022, European Spallation Source
3+
Copyright (c) 2021-2023, European Spallation Source
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)