-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bbe7fd
commit 3187c19
Showing
1 changed file
with
92 additions
and
84 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 |
---|---|---|
|
@@ -270,79 +270,87 @@ jobs: | |
dist/PixelFlasher_Ubuntu_22_04 | ||
dist/PixelFlasher_Ubuntu_22_04.sha256 | ||
# --------------------------------------------------------------------------- | ||
# build_mac_11 | ||
# --------------------------------------------------------------------------- | ||
build_mac_11: | ||
if: github.actor == 'badabing2005' | ||
# runs-on: macos-latest | ||
runs-on: macos-11 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: List Cellar directory Again | ||
run: | | ||
ls /usr/local/Cellar | ||
- name: Install node graphicsmagick imagemagick | ||
run: brew install node graphicsmagick imagemagick | ||
|
||
- name: Install create-dmg | ||
run: npm install --global create-dmg | ||
|
||
- name: Uninstall Pythons other than 3.11 | ||
run: | | ||
brew uninstall --ignore-dependencies [email protected] | ||
brew uninstall --ignore-dependencies [email protected] | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install wxPython | ||
# run: brew install wxpython | ||
run: pip install wxPython | ||
|
||
- name: Add Python 3.11 to PATH | ||
run: export PATH=/usr/local/Cellar/[email protected]/bin:$PATH | ||
|
||
- name: Create virtual environment | ||
run: python3.11 -m venv myenv | ||
shell: bash | ||
|
||
- name: Activate virtual environment | ||
run: source myenv/bin/activate | ||
shell: bash | ||
|
||
- name: Install requirements | ||
run: python3.11 -m pip install -r requirements.txt | ||
|
||
- name: List modules and their versions | ||
run: python3.11 -m pip freeze | ||
|
||
- name: Build application | ||
run: ./build.sh | ||
|
||
- name: Get sha256 | ||
run: | | ||
shasum -a 256 dist/PixelFlasher.dmg > dist/PixelFlasher.dmg.sha256 | ||
cat dist/PixelFlasher.dmg.sha256 | ||
- name: List contents of dist directory | ||
run: ls dist | ||
|
||
# Upload artifacts Mac-OS | ||
- name: Upload Mac-OS 11 Artifact | ||
uses: actions/upload-artifact@v4 | ||
id: upload_artifact_macos_11 | ||
with: | ||
name: PixelFlasher.dmg Artifacts | ||
path: | | ||
dist/PixelFlasher.dmg | ||
dist/PixelFlasher.dmg.sha256 | ||
# # --------------------------------------------------------------------------- | ||
# # build_mac_11 | ||
# # --------------------------------------------------------------------------- | ||
# build_mac_11: | ||
# if: github.actor == 'badabing2005' | ||
# # runs-on: macos-latest | ||
# runs-on: macos-11 | ||
|
||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v4 | ||
|
||
# - name: List Cellar directory Again | ||
# run: | | ||
# ls /usr/local/Cellar | ||
|
||
# - name: Cache brew dependencies | ||
# uses: actions/cache@v2 | ||
# with: | ||
# path: /usr/local/Cellar | ||
# key: ${{ runner.os }}-brew-${{ hashFiles('**/Brewfile.lock.json') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-brew- | ||
|
||
# - name: Install node graphicsmagick imagemagick | ||
# run: brew install node graphicsmagick imagemagick | ||
|
||
# - name: Install create-dmg | ||
# run: npm install --global create-dmg | ||
|
||
# - name: Uninstall Pythons other than 3.11 | ||
# run: | | ||
# brew uninstall --ignore-dependencies [email protected] | ||
# brew uninstall --ignore-dependencies [email protected] | ||
|
||
# - name: Set up Python 3.11 | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: '3.11' | ||
|
||
# - name: Install wxPython | ||
# # run: brew install wxpython | ||
# run: pip install wxPython | ||
|
||
# - name: Add Python 3.11 to PATH | ||
# run: export PATH=/usr/local/Cellar/[email protected]/bin:$PATH | ||
|
||
# - name: Create virtual environment | ||
# run: python3.11 -m venv myenv | ||
# shell: bash | ||
|
||
# - name: Activate virtual environment | ||
# run: source myenv/bin/activate | ||
# shell: bash | ||
|
||
# - name: Install requirements | ||
# run: python3.11 -m pip install -r requirements.txt | ||
|
||
# - name: List modules and their versions | ||
# run: python3.11 -m pip freeze | ||
|
||
# - name: Build application | ||
# run: ./build.sh | ||
|
||
# - name: Get sha256 | ||
# run: | | ||
# shasum -a 256 dist/PixelFlasher.dmg > dist/PixelFlasher.dmg.sha256 | ||
# cat dist/PixelFlasher.dmg.sha256 | ||
|
||
# - name: List contents of dist directory | ||
# run: ls dist | ||
|
||
# # Upload artifacts Mac-OS | ||
# - name: Upload Mac-OS 11 Artifact | ||
# uses: actions/upload-artifact@v4 | ||
# id: upload_artifact_macos_11 | ||
# with: | ||
# name: PixelFlasher.dmg Artifacts | ||
# path: | | ||
# dist/PixelFlasher.dmg | ||
# dist/PixelFlasher.dmg.sha256 | ||
|
||
# --------------------------------------------------------------------------- | ||
# deploy | ||
|
@@ -367,43 +375,43 @@ jobs: | |
# Download the Windows artifact from the build_windows job | ||
- name: Download Windows Artifact | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: PixelFlasher.exe Artifacts | ||
path: release | ||
continue-on-error: true | ||
|
||
# Download the Windows-2019 artifact from the build_windows_2019 job | ||
- name: Download Windows-2019 Artifact | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: PixelFlasher_Win_2019.exe Artifacts | ||
path: release | ||
continue-on-error: true | ||
|
||
# Download the Ubuntu_20_04 artifact from the build_ubuntu_20_04 job | ||
- name: Download Ubuntu_20_04 Artifact | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: PixelFlasher_Ubuntu_20_04 Artifacts | ||
path: release | ||
continue-on-error: true | ||
|
||
# Download the Ubuntu_22_04 artifact from the build_ubuntu_22_04 job | ||
- name: Download Ubuntu_22_04 Artifact | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: PixelFlasher_Ubuntu_22_04 Artifacts | ||
path: release | ||
continue-on-error: true | ||
|
||
# Download the Mac-OS artifacts from the build_mac_11 job | ||
- name: Download Mac-OS Artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: PixelFlasher.dmg Artifacts | ||
path: release | ||
continue-on-error: true | ||
# # Download the Mac-OS artifacts from the build_mac_11 job | ||
# - name: Download Mac-OS Artifacts | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: PixelFlasher.dmg Artifacts | ||
# path: release | ||
# continue-on-error: true | ||
|
||
# List the artifacts downloaded | ||
- name: List contents of dist directory | ||
|