Bump the npm_and_yarn group across 16 directories with 10 updates #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI - Build - macOS | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| generate_assets: | |
| type: boolean | |
| description: Generate assets | |
| checkout_pr: | |
| type: string | |
| description: Checkout PR | |
| push: | |
| branches: | |
| - master | |
| - insider | |
| paths-ignore: | |
| - "**/*.md" | |
| pull_request: | |
| branches: | |
| - "**" | |
| paths-ignore: | |
| - "**/*.md" | |
| env: | |
| APP_NAME: VSCodium | |
| BINARY_NAME: ${{ (github.ref == 'refs/heads/insider' || (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'insider')) && 'codium-insiders' || 'codium' }} | |
| GH_REPO_PATH: ${{ github.repository }} | |
| GITHUB_BRANCH: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.event.head }} | |
| ORG_NAME: ${{ github.repository_owner }} | |
| OS_NAME: osx | |
| VSCODE_QUALITY: ${{ (github.ref == 'refs/heads/insider' || (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'insider')) && 'insider' || 'stable' }} | |
| permissions: {} | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.runner }} | |
| env: | |
| VSCODE_ARCH: ${{ matrix.vscode_arch }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - runner: macos-15-intel | |
| vscode_arch: x64 | |
| - runner: macos-14 | |
| vscode_arch: arm64 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| ref: ${{ env.GITHUB_BRANCH }} | |
| persist-credentials: false | |
| - name: Switch to relevant branch | |
| env: | |
| PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }} | |
| run: . get_pr.sh | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: Setup Python 3 | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: '3.11' | |
| if: env.VSCODE_ARCH == 'x64' | |
| - name: Clone VSCode repo | |
| run: . get_repo.sh | |
| - name: Build | |
| env: | |
| SHOULD_BUILD: yes | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: ./build.sh | |
| - name: Prepare assets | |
| run: ./prepare_assets.sh | |
| if: env.SHOULD_BUILD == 'yes' && github.event.inputs.generate_assets == 'true' | |
| - name: Upload assets | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: bin-${{ matrix.vscode_arch }} | |
| path: assets/ | |
| retention-days: 3 | |
| if: env.SHOULD_BUILD == 'yes' && github.event.inputs.generate_assets == 'true' |