1.3.34 #25
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: Release Binaries | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: Build binaries | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Build TypeScript | |
| run: bun run build | |
| - name: Compile binaries | |
| run: | | |
| mkdir -p dist/bin | |
| bun build --compile --target=bun-darwin-arm64 dist/renderer/main.js --outfile dist/bin/codeep-darwin-aarch64 | |
| bun build --compile --target=bun-darwin-x64 dist/renderer/main.js --outfile dist/bin/codeep-darwin-x86_64 | |
| bun build --compile --target=bun-linux-x64 dist/renderer/main.js --outfile dist/bin/codeep-linux-x86_64 | |
| bun build --compile --target=bun-linux-arm64 dist/renderer/main.js --outfile dist/bin/codeep-linux-aarch64 | |
| - name: Create archives | |
| working-directory: dist/bin | |
| run: | | |
| tar -czf codeep-darwin-aarch64.tar.gz codeep-darwin-aarch64 | |
| tar -czf codeep-darwin-x86_64.tar.gz codeep-darwin-x86_64 | |
| tar -czf codeep-linux-x86_64.tar.gz codeep-linux-x86_64 | |
| tar -czf codeep-linux-aarch64.tar.gz codeep-linux-aarch64 | |
| - name: Upload to GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| dist/bin/codeep-darwin-aarch64.tar.gz | |
| dist/bin/codeep-darwin-x86_64.tar.gz | |
| dist/bin/codeep-linux-x86_64.tar.gz | |
| dist/bin/codeep-linux-aarch64.tar.gz |