diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f3c9baf0..fc61e3881 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,17 +16,17 @@ jobs: strategy: matrix: include: - - os: ubuntu-latest - arch: amd64 - target: windows - cc: x86_64-w64-mingw32-gcc - ext: .exe - - os: ubuntu-20.04 - arch: amd64 - target: linux - - os: macos-latest - arch: amd64 - target: darwin + # - os: ubuntu-latest + # arch: amd64 + # target: windows + # cc: x86_64-w64-mingw32-gcc + # ext: .exe + # - os: ubuntu-20.04 + # arch: amd64 + # target: linux + # - os: macos-latest + # arch: amd64 + # target: darwin - os: macos-latest arch: arm64 target: darwin @@ -125,93 +125,93 @@ jobs: if-no-files-found: error retention-days: 7 - build-packages-windows: - name: Build .msi installer for amd64 - needs: build - defaults: - run: - working-directory: ./installer - runs-on: windows-latest - permissions: - contents: read - id-token: write - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Fetch all git tags - run: git fetch --prune --unshallow --tags - - - name: Set Version - if: ${{ env.VERSION == '' }} - shell: bash - run: | - export VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//') - echo "VERSION=$VERSION" >> $GITHUB_ENV - - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: 3.11 - - - name: Download MassaStation - uses: actions/download-artifact@v3 - with: - name: massastation_windows_amd64_bin - - - name: Rename MassaStation binary - run: mv ../massastation_windows_amd64.exe massastation.exe - - - name: Build Installer - run: python windows/build_installer.py - env: - VERSION: ${{ env.VERSION }} - - - name: Sign Windows binary - uses: ./.github/actions/sign-file - with: - file: installer/massastation_$(echo ${{ env.VERSION }} | sed 's/^v//')_amd64.msi - name: "Massa Station" - GCP_PEM_KEY: ${{ vars.GCP_PEM_KEY }} - GCP_KEYSTORE_ID: ${{ vars.GCP_KEYSTORE_ID }} - GCP_KEY_ALIAS: ${{ vars.GCP_KEY_ALIAS }} - GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }} - GCP_SERVICE_ACCOUNT: ${{ vars.GCP_SERVICE_ACCOUNT }} - - - name: Upload Installer - uses: actions/upload-artifact@v3 - with: - name: massastation_installer_windows_amd64 - path: "installer/*.msi" - if-no-files-found: error - retention-days: 7 - - build-deb-installer: - name: Build .deb installer for Linux amd64 - needs: build - defaults: - run: - working-directory: installer - - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Fetch all git tags - run: git fetch --prune --unshallow --tags - - name: Download MassaStation Package - uses: actions/download-artifact@v3 - with: - name: massastation_linux_amd64_package - path: installer - - name: Build Package - run: sh deb/create_deb.sh - env: - VERSION: ${{ env.VERSION }} - - name: Upload Package - uses: actions/upload-artifact@v3 - with: - name: massastation_installer_deb_amd64 - path: "installer/*.deb" - if-no-files-found: error - retention-days: 7 + # build-packages-windows: + # name: Build .msi installer for amd64 + # needs: build + # defaults: + # run: + # working-directory: ./installer + # runs-on: windows-latest + # permissions: + # contents: read + # id-token: write + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + + # - name: Fetch all git tags + # run: git fetch --prune --unshallow --tags + + # - name: Set Version + # if: ${{ env.VERSION == '' }} + # shell: bash + # run: | + # export VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//') + # echo "VERSION=$VERSION" >> $GITHUB_ENV + + # - name: Setup Python + # uses: actions/setup-python@v4 + # with: + # python-version: 3.11 + + # - name: Download MassaStation + # uses: actions/download-artifact@v3 + # with: + # name: massastation_windows_amd64_bin + + # - name: Rename MassaStation binary + # run: mv ../massastation_windows_amd64.exe massastation.exe + + # - name: Build Installer + # run: python windows/build_installer.py + # env: + # VERSION: ${{ env.VERSION }} + + # - name: Sign Windows binary + # uses: ./.github/actions/sign-file + # with: + # file: installer/massastation_$(echo ${{ env.VERSION }} | sed 's/^v//')_amd64.msi + # name: "Massa Station" + # GCP_PEM_KEY: ${{ vars.GCP_PEM_KEY }} + # GCP_KEYSTORE_ID: ${{ vars.GCP_KEYSTORE_ID }} + # GCP_KEY_ALIAS: ${{ vars.GCP_KEY_ALIAS }} + # GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }} + # GCP_SERVICE_ACCOUNT: ${{ vars.GCP_SERVICE_ACCOUNT }} + + # - name: Upload Installer + # uses: actions/upload-artifact@v3 + # with: + # name: massastation_installer_windows_amd64 + # path: "installer/*.msi" + # if-no-files-found: error + # retention-days: 7 + + # build-deb-installer: + # name: Build .deb installer for Linux amd64 + # needs: build + # defaults: + # run: + # working-directory: installer + + # runs-on: ubuntu-latest + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + # - name: Fetch all git tags + # run: git fetch --prune --unshallow --tags + # - name: Download MassaStation Package + # uses: actions/download-artifact@v3 + # with: + # name: massastation_linux_amd64_package + # path: installer + # - name: Build Package + # run: sh deb/create_deb.sh + # env: + # VERSION: ${{ env.VERSION }} + # - name: Upload Package + # uses: actions/upload-artifact@v3 + # with: + # name: massastation_installer_deb_amd64 + # path: "installer/*.deb" + # if-no-files-found: error + # retention-days: 7