Add MacOS to CI

This commit is contained in:
I-Al-Istannen 2020-10-30 17:02:56 +01:00
parent 0c3f35a2d2
commit ebb6e63c5c

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
@ -28,6 +28,9 @@ jobs:
- name: "Install sync_url.py"
run: "pyinstaller sync_url.py -F"
- name: "Move artifact"
run: "mv dist/sync_url* dist/sync_url-${{ matrix.os }}"
- uses: actions/upload-artifact@v2
with:
name: "Pferd Sync URL"
@ -55,13 +58,20 @@ jobs:
- name: "look at folder structure"
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"
uses: softprops/action-gh-release@v1
- name: "Upload release artifacts"
uses: softprops/action-gh-release@v1
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: |
sync_url
sync_url.exe
sync_url_mac
sync_url_linux
sync_url_windows.exe