Skip to content

Commit

Permalink
add Android ARM64 to CI using esy
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoRFS committed Oct 15, 2020
1 parent fa20d60 commit ab98a9a
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/esy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Crypto

on: [push, pull_request]

jobs:
cross_compile:
name: Build for Android

strategy:
fail-fast: false
matrix:
ocaml-version: ["~4.10.1000"]
operating-system: [ubuntu-latest]

runs-on: ${{ matrix.operating-system }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Create esy wrapper
run: |
echo '{
"name": "cross-compile",
"dependencies": {
"ocaml": "${{ matrix.ocaml-version }}",
"mirage-crypto": "./mirage-crypto.opam",
"mirage-crypto-rng": "./mirage-crypto-rng.opam",
"mirage-crypto-rng-mirage": "./mirage-crypto-rng-mirage.opam",
"generate": "github:EduardoRFS/reason-mobile:generate.json#c606a85242da34901a35b4f6821c105cf0a1b4f0"
},
"resolutions": {
"@opam/mtime": "github:dune-universe/mtime:mtime.opam#9584b66cecc891208b31cec4628dd412b8cffe75"
}
}' > esy.json
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Install esy
run: npm install -g esy
- name: Create cross compile toolchain lock
run: esy solve
- uses: esy/github-action@v1
with:
cache-key: bump-1-${{ hashFiles('esy.lock/index.json') }}

- name: Create Android ARM64 wrapper
run: esy generate android.arm64

- name: Install Android ARM64 dependencies
run: esy @android.arm64 install

- name: Build Android ARM64
run: esy @android.arm64 build

0 comments on commit ab98a9a

Please sign in to comment.