From 1ed5f8bef07c49f3009e0af53c6ddf18c9cbe793 Mon Sep 17 00:00:00 2001 From: "levoncrypto1994@gmail.com" Date: Sat, 30 Dec 2023 21:39:42 +0400 Subject: [PATCH] github actions fix --- .github/workflows/cd.yml | 60 ++++++++++++++++----------------- .github/workflows/ci-master.yml | 58 +++++++++++++++---------------- 2 files changed, 59 insertions(+), 59 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index fd149f2d..16fb31d2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -4,37 +4,37 @@ on: tags: - 'v*' jobs: - # build-windows: - # name: Build for Windows - # runs-on: windows-2019 - # steps: - # - name: Checkout Source - # uses: actions/checkout@v2 - # - name: Get Binary for libusb - # run: | - # Invoke-WebRequest -Uri https://github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.7z -OutFile libusb.7z -UseBasicParsing - # Start-Process -FilePath "C:\Program Files\7-Zip\7z.exe" -ArgumentList x,-olibusb,libusb.7z -NoNewWindow - # - name: Install libusb - # run: Copy-Item -Path "libusb\MS64\dll\libusb-1.0.dll" -Destination C:\Windows\System32\ - # - name: Setup Python - # uses: actions/setup-python@v4 - # with: - # python-version: '3.9.0' - # - name: Install Application Dependencies - # run: | - # python -m pip install setuptools==65.3.0 - # python -m pip install pip==20.2.3 - # python -m pip install -r requirements.txt - # - name: Bundle Application - # run: python -m PyInstaller --distpath=bin --workpath=work dash_masternode_tool.spec - # - name: Upload Release Artifact - # uses: actions/upload-artifact@v2 - # with: - # name: binaries-win32-amd64 - # path: bin\firo-masternode-tool.exe + build-windows: + name: Build for Windows + runs-on: windows-2019 + steps: + - name: Checkout Source + uses: actions/checkout@v2 + - name: Get Binary for libusb + run: | + Invoke-WebRequest -Uri https://github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.7z -OutFile libusb.7z -UseBasicParsing + Start-Process -FilePath "C:\Program Files\7-Zip\7z.exe" -ArgumentList x,-olibusb,libusb.7z -NoNewWindow + - name: Install libusb + run: Copy-Item -Path "libusb\MS64\dll\libusb-1.0.dll" -Destination C:\Windows\System32\ + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.9.0' + - name: Install Application Dependencies + run: | + python -m pip install setuptools==65.3.0 + python -m pip install pip==20.2.3 + python -m pip install -r requirements.txt + - name: Bundle Application + run: python -m PyInstaller --distpath=bin --workpath=work dash_masternode_tool.spec + - name: Upload Release Artifact + uses: actions/upload-artifact@v2 + with: + name: binaries-win32-amd64 + path: bin\firo-masternode-tool.exe build-mac: name: Build for macOS - runs-on: macos-10.15 + runs-on: macos-12.7 steps: - name: Checkout Source uses: actions/checkout@v2 @@ -84,7 +84,7 @@ jobs: release: name: Draft Release runs-on: ubuntu-18.04 - needs: [build-mac, build-linux] + needs: [build-windows, build-mac, build-linux] env: BIN_ROOT: bin ASSETS_ROOT: release diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index 4a732901..2469df58 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -7,37 +7,37 @@ on: branches: - master jobs: - # build-windows: - # name: Build for Windows - # runs-on: windows-2019 - # steps: - # - name: Checkout Source - # uses: actions/checkout@v2 - # - name: Get Binary for libusb - # run: | - # Invoke-WebRequest -Uri https://github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.7z -OutFile libusb.7z -UseBasicParsing - # Start-Process -FilePath "C:\Program Files\7-Zip\7z.exe" -ArgumentList x,-olibusb,libusb.7z -NoNewWindow - # - name: Install libusb - # run: Copy-Item -Path "libusb\MS64\dll\libusb-1.0.dll" -Destination C:\Windows\System32\ - # - name: Setup Python - # uses: actions/setup-python@v4 - # with: - # python-version: '3.9.0' - # - name: Install Application Dependencies - # run: | - # python -m pip install setuptools==65.3.0 - # python -m pip install pip==20.2.3 - # python -m pip install -r requirements.txt - # - name: Bundle Application - # run: python -m PyInstaller --distpath=bin --workpath=work dash_masternode_tool.spec - # - name: Upload Release Artifact - # uses: actions/upload-artifact@v2 - # with: - # name: binaries-win32-amd64 - # path: bin\firo-masternode-tool.exe + build-windows: + name: Build for Windows + runs-on: windows-2019 + steps: + - name: Checkout Source + uses: actions/checkout@v2 + - name: Get Binary for libusb + run: | + Invoke-WebRequest -Uri https://github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.7z -OutFile libusb.7z -UseBasicParsing + Start-Process -FilePath "C:\Program Files\7-Zip\7z.exe" -ArgumentList x,-olibusb,libusb.7z -NoNewWindow + - name: Install libusb + run: Copy-Item -Path "libusb\MS64\dll\libusb-1.0.dll" -Destination C:\Windows\System32\ + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.9.0' + - name: Install Application Dependencies + run: | + python -m pip install setuptools==65.3.0 + python -m pip install pip==20.2.3 + python -m pip install -r requirements.txt + - name: Bundle Application + run: python -m PyInstaller --distpath=bin --workpath=work dash_masternode_tool.spec + - name: Upload Release Artifact + uses: actions/upload-artifact@v2 + with: + name: binaries-win32-amd64 + path: bin\firo-masternode-tool.exe build-mac: name: Build for macOS - runs-on: macos-10.15 + runs-on: macos-12.7 steps: - name: Checkout Source uses: actions/checkout@v2