-
Notifications
You must be signed in to change notification settings - Fork 64
61 lines (57 loc) · 1.95 KB
/
Copy pathci-sea.yml
File metadata and controls
61 lines (57 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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: ${{ secrets.SOCKET_RELEASE_CLIENT_ID || vars.SOCKET_RELEASE_CLIENT_ID }}
payload-token-private-key: ${{ secrets.SOCKET_RELEASE_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: ${{ secrets.SOCKET_RELEASE_CLIENT_ID || vars.SOCKET_RELEASE_CLIENT_ID }}
private-key: ${{ secrets.SOCKET_RELEASE_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