Преглед на файлове

new github actions attempt

Thomas Buck преди 3 години
родител
ревизия
54d197680d
променени са 3 файла, в които са добавени 19 реда и са изтрити 11 реда
  1. 8
    4
      .github/workflows/buildmac.yml
  2. 9
    5
      .github/workflows/buildwindows.yml
  3. 2
    2
      build_win.sh

+ 8
- 4
.github/workflows/buildmac.yml Целия файл

@@ -1,4 +1,4 @@
1
-name: Build Windows
1
+name: Build Mac
2 2
 
3 3
 on: [push]
4 4
 
@@ -7,15 +7,19 @@ jobs:
7 7
     runs-on: macos-latest
8 8
     steps:
9 9
     - uses: actions/checkout@v2
10
-    - name: Set up Python 3.9
11
-      uses: actions/setup-python@v2
10
+    - uses: actions/setup-python@v2
12 11
       with:
13 12
         python-version: 3.9
14 13
     - name: Install dependencies
15 14
       run: |
16 15
         python -m pip install --upgrade pip
17
-        pip install pylint
16
+        pip install PyQt5
18 17
         pip install py2exe
19 18
     - name: Run Mac build
20 19
       run: |
20
+        cd ${{ github.workspace }}
21 21
         ./build_mac.sh
22
+    - name: Show build results
23
+      run: |
24
+        ls ${{ github.workspace }}/build/mac
25
+        ls ${{ github.workspace }}/build/dist

+ 9
- 5
.github/workflows/buildwindows.yml Целия файл

@@ -7,15 +7,19 @@ jobs:
7 7
     runs-on: windows-latest
8 8
     steps:
9 9
     - uses: actions/checkout@v2
10
-    - name: Set up Python 3.9
11
-      uses: actions/setup-python@v2
10
+    - uses: actions/setup-python@v2
12 11
       with:
13
-        python-version: 3.9
12
+        python-version: 3.7
14 13
     - name: Install dependencies
15 14
       run: |
16 15
         python -m pip install --upgrade pip
17
-        pip install pylint
16
+        pip install PyQt5
18 17
         pip install py2exe
19 18
     - name: Run Windows build
20 19
       run: |
21
-        build_win.bat
20
+        cd ${{ github.workspace }}
21
+        ./build_win.sh
22
+    - name: Show build results
23
+      run: |
24
+        ls ${{ github.workspace }}/build/win
25
+        ls ${{ github.workspace }}/build/dist

build_win.bat → build_win.sh Целия файл

@@ -1,7 +1,7 @@
1 1
 #!/bin/sh
2 2
 
3
-del build/win
4
-mkdir build/win
3
+rm -rf build/win
4
+mkdir -p build/win
5 5
 
6 6
 cp src/* build/win/
7 7
 cp data/* build/win/

Loading…
Отказ
Запис