Repository navigation
ci: sea #9
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: sea' | |
| run-name: 'ci: sea' | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| native: | |
| name: Native sea (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - name: Bootstrap checkout | |
| shell: bash | |
| env: | |
| SERVER_URL: ${{ github.server_url }} | |
| REPOSITORY: ${{ github.repository }} | |
| TRIGGER_REF: ${{ github.sha }} | |
| run: | | |
| set -euo pipefail | |
| git init -q | |
| git remote add origin "${SERVER_URL}/${REPOSITORY}" | |
| git fetch --no-tags --depth 1 origin "${TRIGGER_REF}" | |
| git checkout -q --detach FETCH_HEAD | |
| - name: Set up and install | |
| uses: ./.github/actions/fleet/setup-and-install | |
| with: | |
| payload-token-client-id: ${{ vars.SOCKET_PR_CLIENT_ID }} | |
| payload-token-private-key: ${{ secrets.SOCKET_PR_APP_PRIVATE_KEY }} | |
| socket-api-token: ${{ secrets.SOCKET_API_TOKEN_FOR_CLI_AND_SFW }} | |
| - name: Mint sdxgen read token | |
| id: sdxgen-token | |
| uses: ./.github/actions/fleet/github-payload-app-token | |
| with: | |
| client-id: ${{ vars.SOCKET_PR_CLIENT_ID }} | |
| private-key: ${{ secrets.SOCKET_PR_APP_PRIVATE_KEY }} | |
| repositories: sdxgen | |
| - name: Build CLI payload | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| SDXGEN_GITHUB_TOKEN: ${{ steps.sdxgen-token.outputs.token }} | |
| run: pnpm run build:cli | |
| - name: Build native sea | |
| run: pnpm run build:sea --target=host | |
| - name: Verify native executable | |
| run: pnpm run check:sea-package --host | |
| - name: Test sea tooling | |
| run: pnpm run test:sea |