소스 검색

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
-name: Build Windows
1
+name: Build Mac
2
 
2
 
3
 on: [push]
3
 on: [push]
4
 
4
 
7
     runs-on: macos-latest
7
     runs-on: macos-latest
8
     steps:
8
     steps:
9
     - uses: actions/checkout@v2
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
       with:
11
       with:
13
         python-version: 3.9
12
         python-version: 3.9
14
     - name: Install dependencies
13
     - name: Install dependencies
15
       run: |
14
       run: |
16
         python -m pip install --upgrade pip
15
         python -m pip install --upgrade pip
17
-        pip install pylint
16
+        pip install PyQt5
18
         pip install py2exe
17
         pip install py2exe
19
     - name: Run Mac build
18
     - name: Run Mac build
20
       run: |
19
       run: |
20
+        cd ${{ github.workspace }}
21
         ./build_mac.sh
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
     runs-on: windows-latest
7
     runs-on: windows-latest
8
     steps:
8
     steps:
9
     - uses: actions/checkout@v2
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
       with:
11
       with:
13
-        python-version: 3.9
12
+        python-version: 3.7
14
     - name: Install dependencies
13
     - name: Install dependencies
15
       run: |
14
       run: |
16
         python -m pip install --upgrade pip
15
         python -m pip install --upgrade pip
17
-        pip install pylint
16
+        pip install PyQt5
18
         pip install py2exe
17
         pip install py2exe
19
     - name: Run Windows build
18
     - name: Run Windows build
20
       run: |
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
 #!/bin/sh
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
 cp src/* build/win/
6
 cp src/* build/win/
7
 cp data/* build/win/
7
 cp data/* build/win/

Loading…
취소
저장