diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c53e34fb..99f468852 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,18 +8,16 @@ on: jobs: - build: + ubuntu: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 - name: npm install run: cd webapp; npm install - - name: ESLint - run: cd webapp; npm run check - - name: Set up Go uses: actions/setup-go@v2 with: @@ -31,11 +29,14 @@ jobs: - name: Copy server binary for Cypress run: cp bin/linux/octoserver bin/ - - uses: actions/upload-artifact@v1 + - name: Upload server package + uses: actions/upload-artifact@v1 with: name: octo-linux-amd64.tar.gz path: ${{ github.workspace }}/dist/octo-linux-amd64.tar.gz - name: Upload server package + + - name: ESLint + run: cd webapp; npm run check - name: "Test webapp: Jest" run: cd webapp; npm run test @@ -45,3 +46,34 @@ jobs: - name: Test server run: make server-test + + macos: + runs-on: macos-10.15 + + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: npm install + run: cd webapp; npm install + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.15 + + - name: List Xcode versions + run: ls -n /Applications/ | grep Xcode* + + - name: Build macOS + run: make mac-app + env: + DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer + + - name: Upload macOS package + uses: actions/upload-artifact@v1 + with: + name: tasks-mac.zip + path: ${{ github.workspace }}/mac/dist/tasks-mac.zip +