-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from taojy123/github_actions
Release:5.1.1
- Loading branch information
Showing
3 changed files
with
90 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: release | ||
|
||
on: | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
keymousego-version: _v5_1_1 | ||
|
||
jobs: | ||
build-windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@main | ||
with: | ||
python-version: "3.7" | ||
- name: Install dependencies | ||
run: | | ||
pip3 install -r requirements-windows.txt | ||
pip3 install pyinstaller | ||
- name: Bundle Packages | ||
run: | | ||
pyinstaller -Fw --add-data './assets;assets' KeymouseGo.py | ||
- name: Copy artifact | ||
run: | | ||
mkdir artifact && mv dist/KeymouseGo.exe ./artifact/KeymouseGo${{ env.keymousego-version }}-win.exe | ||
- name: Artifact | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: windows | ||
path: ${{ github.workspace }}/artifact/ | ||
|
||
build-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@main | ||
with: | ||
python-version: "3.7" | ||
- name: Install dependencies | ||
run: | | ||
pip3 install -r requirements-universal.txt | ||
pip3 install pyinstaller | ||
- name: Bundle Packages | ||
run: | | ||
pyinstaller -Fw --add-data './assets:assets' KeymouseGo.py | ||
- name: Copy artifact | ||
run: | | ||
mkdir artifact && mv dist/KeymouseGo ./artifact/KeymouseGo${{ env.keymousego-version }}-linux | ||
- name: Artifact | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: linux | ||
path: ${{ github.workspace }}/artifact/ | ||
|
||
build-macos: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@main | ||
with: | ||
python-version: "3.7" | ||
- name: Install dependencies | ||
run: | | ||
pip3 install -r requirements-universal.txt | ||
pip3 install pyinstaller | ||
- name: Bundle Packages | ||
run: | | ||
pyinstaller -Fw --add-data './assets:assets' KeymouseGo.py | ||
- name: Copy artifact | ||
run: | | ||
mkdir artifact && mv dist/KeymouseGo ./artifact/KeymouseGo${{ env.keymousego-version }}-mac | ||
- name: Artifact | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: macos | ||
path: ${{ github.workspace }}/artifact/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,6 @@ scripts/ | |
|
||
# Custom configue file | ||
*.ini | ||
.github | ||
plugins/ | ||
logs/ | ||
!assets/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters