From 33968ce2fb0b0a79562e4bc2c0bf04154da6f5c4 Mon Sep 17 00:00:00 2001 From: Anjan Nath Date: Wed, 22 Feb 2023 20:44:27 +0530 Subject: [PATCH 1/2] add github actions ci most of our repos are already using github actions --- .github/workflows/build.yml | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1330256 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,60 @@ +name: Build tray-electron +on: + push: + branches: + - "master" + pull_request: {} + +jobs: + build-win: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - windows-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Setup nodejs + uses: actions/setup-node@v3 + with: + node-version: 16.13.0 + - name: Install dependencies tray-electron + run: npm install + - name: Install dependecies react + run: cd frontend && npm install + - name: Generate Builds + run: npm run release:cross + - name: Upload electron-tray artifact + uses: actions/upload-artifact@v3 + with: + name: windows-tray-electron + path: release/crc-tray-win32-x64 + + build-mac: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - macos-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Setup nodejs + uses: actions/setup-node@v3 + with: + node-version: 16.13.0 + - name: Install dependencies tray-electron + run: npm install + - name: Install dependecies react + run: cd frontend && npm install + - name: Generate Builds + run: npm run release:mac-universal + - name: Upload electron-tray artifact + uses: actions/upload-artifact@v3 + with: + name: macos-tray-electron + path: release/crc-tray-darwin-universal + From 5962a3975ecd5efa5948e3eb02d7749514d8dd1b Mon Sep 17 00:00:00 2001 From: Anjan Nath Date: Wed, 22 Feb 2023 20:44:42 +0530 Subject: [PATCH 2/2] remove circleci --- .circleci/config.yml | 62 -------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100755 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100755 index df5b2bf..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,62 +0,0 @@ -version: 2.1 -jobs: - build: - working_directory: ~/repo - docker: - - image: cimg/node:16.13.0 - steps: - - checkout - - run: - name: Install Wine64 (Needed for windows build) - command: | - sudo apt-get update - sudo apt install wine64 zip - - run: - name: Install Dependencies (electron) - command: npm install - - run: - name: Install Dependencies (react) - command: cd frontend && npm install - - run: - name: Generate Builds - command: npm run release:cross - - run: - name: Archive Windows release directory - command: cd release && zip -r crc-tray-windows.zip crc-tray-win32-x64/ - - run: - name: Archive macOS release directory - command: cd release && tar -cvzf crc-tray-macos.tar.gz crc-tray-darwin-x64/ - - store_artifacts: - path: ~/repo/release/crc-tray-windows.zip - destination: crc-tray-windows.zip - - store_artifacts: - path: ~/repo/release/crc-tray-macos.tar.gz - destination: crc-tray-macos.tar.gz - - build-universal: - working_directory: ~/repo - macos: - xcode: 13.4.0 - steps: - - checkout - - run: - name: Install Dependencies (electron) - command: npm install - - run: - name: Install Dependencies (react) - command: cd frontend && npm install - - run: - name: Generate mac universal build - command: npm run release:mac-universal - - run: - name: Archive macOS universal release directory - command: cd release && tar -cvzf crc-tray-macos-universal.tar.gz crc-tray-darwin-universal/ - - store_artifacts: - path: ~/repo/release/crc-tray-macos-universal.tar.gz - destination: crc-tray-macos-universal.tar.gz -workflows: - version: 2 - build: - jobs: - - build - - build-universal