diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..11cf5c4f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: Build YouTube Music + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Build YouTube Music + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + + steps: + - uses: actions/checkout@v2 + + - name: Setup NodeJS + uses: actions/setup-node@v1 + with: + node-version: "12.x" + + - name: Install dependencies + run: yarn --frozen-lockfile + + - name: Test + run: yarn test + + - name: Build on Mac + if: startsWith(matrix.os, 'macOS') + run: | + yarn run release:mac + + - name: Build on Linux + if: startsWith(matrix.os, 'ubuntu') + run: | + yarn run release:linux + + - name: Build on Windows + if: startsWith(matrix.os, 'windows') + run: | + yarn run release:win