forked from SoftVarE-Group/d-dnnf-reasoner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from uulm-janbaudisch/aarch64
Test
- Loading branch information
Showing
42 changed files
with
1,766 additions
and
306 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,42 @@ | ||
name: Container | ||
|
||
on: | ||
- push | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: softvare-group/ddnnife | ||
TAG: ${{ github.ref_name }} | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Nix | ||
uses: DeterminateSystems/nix-installer-action@v10 | ||
- name: Cache | ||
uses: DeterminateSystems/magic-nix-cache-action@v4 | ||
- name: Build | ||
run: nix build -L .#container | ||
- name: Login | ||
run: nix run nixpkgs#skopeo -- login $REGISTRY --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} | ||
- name: Push | ||
run: nix run nixpkgs#skopeo -- copy docker-archive:result docker://$REGISTRY/$IMAGE_NAME:$TAG | ||
- name: Push latest tag | ||
if: ${{ github.ref_type == 'tag' }} | ||
run: nix run nixpkgs#skopeo -- copy docker://$REGISTRY/$IMAGE_NAME:$TAG docker://$REGISTRY/$IMAGE_NAME:latest | ||
#name: Container | ||
# | ||
#on: | ||
# - push | ||
# | ||
#env: | ||
# REGISTRY: ghcr.io | ||
# IMAGE_NAME: softvare-group/ddnnife | ||
# TAG: ${{ github.ref_name }} | ||
# | ||
#jobs: | ||
# Build: | ||
# strategy: | ||
# matrix: | ||
# target: | ||
# - double: aarch64-linux # target we are building for | ||
# architecture: arm64 # container architecture label | ||
# emulated: true # whether this build is being emulated | ||
# - double: x86_64-linux | ||
# architecture: amd64 | ||
# runs-on: ubuntu-24.04 | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - name: QEMU | ||
# if: ${{ matrix.target.emulated }} | ||
# run: sudo apt-get install -y qemu-user-static | ||
# - name: Nix | ||
# uses: DeterminateSystems/nix-installer-action@v13 | ||
# with: | ||
# extra-conf: extra-platforms = ${{ matrix.target.double }} | ||
# - name: Cache | ||
# uses: DeterminateSystems/magic-nix-cache-action@v7 | ||
# - name: Build | ||
# run: nix build -L .#packages.${{ matrix.target.double }}.container | ||
# - name: Login | ||
# run: nix run nixpkgs#skopeo -- login $REGISTRY --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Push | ||
# run: nix run nixpkgs#skopeo -- copy docker-archive:result docker://$REGISTRY/$IMAGE_NAME:$TAG-${{ matrix.target.architecture }} | ||
# - name: Push latest tag | ||
# if: ${{ github.ref_type == 'tag' }} | ||
# run: nix run nixpkgs#skopeo -- copy docker://$REGISTRY/$IMAGE_NAME:$TAG-${{ matrix.target.architecture }} docker://$REGISTRY/$IMAGE_NAME:latest-${{ matrix.target.architecture }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
name: Kotlin | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
# Builds the library and binding for a single target. | ||
Library: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
# - double: aarch64-linux | ||
# jna: linux-aarch64 | ||
# runner: ubuntu-24.04 | ||
# emulated: true | ||
- double: x86_64-linux | ||
jna: linux-x86-64 | ||
runner: ubuntu-24.04 | ||
- double: aarch64-darwin | ||
jna: darwin-aarch64 | ||
runner: macos-latest | ||
# - double: x86_64-darwin | ||
# jna: darwin-x86-64 | ||
# runner: macos-13 | ||
variant: | ||
- '' | ||
# - '-d4' | ||
exclude: | ||
- target: { double: x86_64-darwin } | ||
variant: '-d4' | ||
runs-on: ${{ matrix.target.runner }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: QEMU | ||
if: ${{ matrix.target.emulated }} | ||
run: sudo apt-get install -y qemu-user-static | ||
- name: Nix | ||
uses: DeterminateSystems/nix-installer-action@v13 | ||
with: | ||
extra-conf: extra-platforms = ${{ matrix.target.double }} | ||
- name: Cache | ||
uses: DeterminateSystems/magic-nix-cache-action@v7 | ||
- name: Build (bindgen) | ||
run: | | ||
nix build -L .#bindgen | ||
cp -L result/bin/uniffi-bindgen . | ||
- name: Build (library) | ||
run: | | ||
nix build -L .#libddnnife${{ matrix.variant }} | ||
mkdir -p libraries/${{ matrix.target.jna }} | ||
cp -L result/lib/*ddnnife* libraries/${{ matrix.target.jna }}/ | ||
- name: Upload (library) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: libddnnife${{ matrix.variant }}-${{ matrix.target.double }} | ||
path: libraries | ||
- name: Build | ||
run: | | ||
cd bindings/kotlin | ||
gradle shadowJar --no-daemon -Plibraries=../../libraries -Pbindgen=../../uniffi-bindgen | ||
- name: Test | ||
run: | | ||
cd bindings/kotlin | ||
gradle test --no-daemon -Plibraries=../../libraries -Pbindgen=../../uniffi-bindgen | ||
# Creates one JAR for all platforms. | ||
Package: | ||
needs: Library | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
variant: | ||
- '' | ||
# - '-d4' | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Nix | ||
uses: DeterminateSystems/nix-installer-action@v13 | ||
- name: Build (bindgen) | ||
run: | | ||
nix build -L .#bindgen | ||
cp -L result/bin/uniffi-bindgen . | ||
- name: Download (libraries) | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: libraries | ||
pattern: libddnnife${{ matrix.variant }}-* | ||
merge-multiple: true | ||
- name: Build | ||
run: | | ||
cd bindings/kotlin | ||
gradle shadowJar --no-daemon -Plibraries=../../libraries -Pbindgen=../../uniffi-bindgen | ||
- name: Test | ||
run: | | ||
cd bindings/kotlin | ||
gradle test --no-daemon -Plibraries=../../libraries -Pbindgen=../../uniffi-bindgen | ||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ddnnife-kotlin${{ matrix.variant }} | ||
path: bindings/kotlin/build/libs | ||
- name: Docs | ||
run: | | ||
cd bindings/kotlin | ||
gradle dokkaHtml --no-daemon -Plibraries=../../libraries -Pbindgen=../../uniffi-bindgen | ||
mkdir docs | ||
mv build/dokka/html docs/kotlin | ||
- name: Upload (docs) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pages-kotlin | ||
path: bindings/kotlin/docs | ||
|
||
# Deploys all pages, including the Kotlin documentation generated above. | ||
Pages: | ||
if: github.ref == 'refs/heads/main' | ||
needs: Package | ||
uses: ./.github/workflows/Pages.yaml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Pages | ||
|
||
on: workflow_call | ||
|
||
jobs: | ||
Deploy: | ||
permissions: | ||
pages: write | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: pages | ||
pattern: pages-* | ||
merge-multiple: true | ||
- name: Upload | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: pages | ||
- name: Deploy | ||
uses: actions/deploy-pages@v4 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
name: Portable | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
Build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- double: x86_64-linux | ||
runner: ubuntu-latest | ||
runs-on: ${{ matrix.target.runner }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Nix | ||
uses: DeterminateSystems/nix-installer-action@v10 | ||
- name: Cache | ||
uses: DeterminateSystems/magic-nix-cache-action@v4 | ||
- name: Bundle | ||
run: nix bundle --bundler github:DavHau/nix-portable -o bundle .#ddnnife-d4 | ||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ddnnife-${{ matrix.target.double }}-d4-portable | ||
path: bundle | ||
#name: Portable | ||
# | ||
#on: | ||
# - push | ||
# | ||
#jobs: | ||
# Build: | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# target: | ||
# - double: x86_64-linux | ||
# runner: ubuntu-latest | ||
# runs-on: ${{ matrix.target.runner }} | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - name: Nix | ||
# uses: DeterminateSystems/nix-installer-action@v13 | ||
# - name: Cache | ||
# uses: DeterminateSystems/magic-nix-cache-action@v7 | ||
# - name: Bundle | ||
# run: nix bundle --bundler github:DavHau/nix-portable -o bundle .#ddnnife-d4 | ||
# - name: Upload | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: ddnnife-${{ matrix.target.double }}-d4-portable | ||
# path: bundle |
Oops, something went wrong.