feat: read MUX_BASE_URL from env-file and persist to config #114
Workflow file for this run
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run check | |
| typecheck: | |
| name: Typecheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run typecheck | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run test | |
| build: | |
| name: Build (${{ matrix.target }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - target: darwin-arm64 | |
| os: macos-latest | |
| - target: darwin-x64 | |
| os: macos-15-intel | |
| - target: linux-x64 | |
| os: ubuntu-latest | |
| - target: linux-arm64 | |
| os: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: pnpm install --frozen-lockfile | |
| - name: Build binary | |
| run: bun build --compile --minify --sourcemap ./src/index.ts --target=bun-${{ matrix.target }} --outfile ./dist/mux-${{ matrix.target }} | |
| - name: Codesign darwin binary (ad-hoc) | |
| if: startsWith(matrix.target, 'darwin-') | |
| run: | | |
| codesign --remove-signature ./dist/mux-${{ matrix.target }} | |
| codesign --sign - ./dist/mux-${{ matrix.target }} | |
| - name: Smoke test binary | |
| run: ./dist/mux-${{ matrix.target }} --version | |
| - name: Verify darwin binary is codesigned | |
| if: startsWith(matrix.target, 'darwin-') | |
| run: codesign -vvv --verify --strict ./dist/mux-${{ matrix.target }} |