Skip to content

Commit

Permalink
Feat/build aarch64 (#18)
Browse files Browse the repository at this point in the history
* feat: build for aarch64
  • Loading branch information
francis2tm authored Feb 5, 2024
1 parent 0c5308f commit b2e14b8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "build"
on:
push:
branches: [ "*" ]
branches: ["main"]
pull_request:
branches: [ "*" ]
branches: ["main"]

# This is the example from the readme.
# On each push to the `main` branch it will create or update a GitHub build, build your app, and upload the artifacts to the build.
Expand All @@ -15,16 +15,25 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ macos-latest, ubuntu-20.04, windows-latest ]
include:
- os: macos-latest
target: aarch64-apple-darwin
- os: macos-latest
target: x86_64-apple-darwin
- os: ubuntu-20.04
- os: windows-latest

runs-on: ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
steps:
- name: "Setup actions/checkout"
uses: actions/checkout@v4

- name: "Setup rust"
uses: actions-rust-lang/setup-rust-toolchain@v1

- if: matrix.target
run: rustup target add ${{ matrix.target }}

- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -38,14 +47,14 @@ jobs:

# setup dependencies
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y build-essential curl wget file libssl-dev libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev patchelf
# install llvm (for llvm-copy) on macos only
# install llvm (for llvm-copy) on macos only. For cpp runtimes.
- name: Install LLVM
if: matrix.platform == 'macos-latest'
if: matrix.os == 'macos-latest'
run: |
brew update
brew install llvm@17
Expand All @@ -67,3 +76,4 @@ jobs:
releaseDraft: true
prerelease: false
projectPath: ./edgen
args: ${{ matrix.target && format('--target {0}', matrix.target) }}
13 changes: 6 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b2e14b8

Please sign in to comment.