瀏覽代碼

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…
取消
儲存