Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tie together loose ends for automated native builds #124

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/native-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
runs-on: ubuntu-20.04

strategy:
fail-fast: false
matrix:
arch:
- "386"
Expand All @@ -24,6 +25,9 @@ jobs:
- arm64
- linux-arm-v5
- s390x
- mips64le
- ppc64le
- riscv64

name: Linux binary ${{ matrix.arch }}

Expand Down Expand Up @@ -57,6 +61,6 @@ jobs:
- name: Archive built jar
uses: actions/upload-artifact@v2
with:
name: jar-${{ matrix.arch }}
name: jar-${{ matrix.arch }}-Linux
path: archive/*.jar

23 changes: 10 additions & 13 deletions .github/workflows/native-macos.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
name: Build macOS Binaries

on:
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
# GHA does not support building Apple am64 very well, so we disable this workflow for now.
# See https://github.com/actions/runner/issues/805
push:
branches-ignore:
- '**'
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
native:

runs-on: macos-latest
runs-on: [self-hosted, macos, aarch64]

name: macOS binary

steps:
- uses: actions/checkout@v2
- name: set up java ${{ matrix.java-version }}
uses: actions/setup-java@v1.4.3
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 8
architecture: arm
- name: cache dependencies
uses: actions/cache@v1
with:
Expand All @@ -36,15 +33,15 @@ jobs:
run: "rm archive/* && ant jar && ant archive-platform-jar"
- name: Dump config.log
if: ${{ always() }}
run: "cat /Users/runner/work/jffi/jffi/build/jni/libffi-darwin-x86_64/config.log"
run: "cat build/jni/libffi-darwin-x86_64/config.log"
- name: Archive built library
uses: actions/upload-artifact@v2
with:
name: shared-object
path: build/jni/*.so
path: build/jni/*.jnilib
- name: Archive built jar
uses: actions/upload-artifact@v2
with:
name: jar
name: jar-Darwin
path: archive/*.jar

Binary file modified archive/jffi-Darwin.jar
Binary file not shown.
Binary file modified archive/jffi-aarch64-Linux.jar
Binary file not shown.
Binary file modified archive/jffi-arm-Linux.jar
Binary file not shown.
Binary file modified archive/jffi-i386-Linux.jar
Binary file not shown.
Binary file modified archive/jffi-s390x-Linux.jar
Binary file not shown.
Binary file modified archive/jffi-x86_64-Linux.jar
Binary file not shown.