Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Compile native binaries in CI/CD, commit lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aronson committed Aug 28, 2023
1 parent 813ad3e commit 912fa57
Show file tree
Hide file tree
Showing 3 changed files with 1,059 additions and 9 deletions.
39 changes: 33 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: "arm64,arm"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand Down Expand Up @@ -59,4 +54,36 @@ jobs:
file: ./docker/Dockerfile
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
platforms: linux/amd64,linux/arm64

- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Compile Windows binary
run: deno compile -A --target=x86_64-pc-windows-msvc -o discord-irc-windows-x86_64.exe lib/index.ts
- uses: actions/upload-artifact@v3
with:
name: windows-x86_64
path: ./discord-irc-windows-x86_64.exe

- name: Compile Linux binary
run: deno compile -A --target=x86_64-unknown-linux-gnu -o discord-irc-linux-x86_64 lib/index.ts && chmod +x discord-irc-linux-x86_64
- uses: actions/upload-artifact@v3
with:
name: linux-x86_64
path: ./discord-irc-linux-x86_64

- name: Compile macOS (Intel) binary
run: deno compile -A --target=x86_64-apple-darwin -o discord-irc-apple-x86_64 lib/index.ts && chmod +x discord-irc-apple-x86_64
- uses: actions/upload-artifact@v3
with:
name: apple-x86_64
path: ./discord-irc-apple-x86_64

- name: Compile macOS (Apple Silicon) binary
run: deno compile -A --target=x86_64-apple-darwin -o discord-irc-apple-arm64 lib/index.ts && chmod +x discord-irc-apple-arm64
- uses: actions/upload-artifact@v3
with:
name: apple-arm64
path: ./discord-irc-apple-arm64
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ discord-irc
# Git hooks
.git-hooks/

# Deno lock
deno.lock

# Logs
logs
*.log
Expand Down
Loading

0 comments on commit 912fa57

Please sign in to comment.