mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Add MacOS to CI
This commit is contained in:
parent
0c3f35a2d2
commit
ebb6e63c5c
18
.github/workflows/package.yml
vendored
18
.github/workflows/package.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -28,6 +28,9 @@ jobs:
|
|||||||
- name: "Install sync_url.py"
|
- name: "Install sync_url.py"
|
||||||
run: "pyinstaller sync_url.py -F"
|
run: "pyinstaller sync_url.py -F"
|
||||||
|
|
||||||
|
- name: "Move artifact"
|
||||||
|
run: "mv dist/sync_url* dist/sync_url-${{ matrix.os }}"
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: "Pferd Sync URL"
|
name: "Pferd Sync URL"
|
||||||
@ -55,13 +58,20 @@ jobs:
|
|||||||
- name: "look at folder structure"
|
- name: "look at folder structure"
|
||||||
run: "ls -lah"
|
run: "ls -lah"
|
||||||
|
|
||||||
|
- name: "Rename releases"
|
||||||
|
run: "mv sync_url-macos-latest sync_url_mac && mv sync_url-ubuntu-latest sync_url_linux && sync_url-windows-latest sync_url_windows.exe"
|
||||||
|
|
||||||
|
- name: "look at folder structure after rename"
|
||||||
|
run: "ls -lah"
|
||||||
|
|
||||||
- name: "Create release"
|
- name: "Create release"
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
|
||||||
- name: "Upload release artifacts"
|
- name: "Upload release artifacts"
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
body: "Download sync_url (or sync_url.exe on Windows) and run it in the terminal or CMD."
|
body: "Download the correct sync_url for your platform and run it in the terminal or CMD. You might need to make it executable ob Linux/Mac with 'chmod +x <file>'"
|
||||||
files: |
|
files: |
|
||||||
sync_url
|
sync_url_mac
|
||||||
sync_url.exe
|
sync_url_linux
|
||||||
|
sync_url_windows.exe
|
||||||
|
Loading…
Reference in New Issue
Block a user