Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
uulm-janbaudisch committed Aug 20, 2024
1 parent 77c648a commit 188382b
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 122 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ jobs:
fail-fast: false
matrix:
target:
- double: aarch64-linux # target we are building for
system: aarch64-linux # system we are building on
emulated: true # whether this build is being emulated
runner: ubuntu-24.04 # GitHub runner the build is running on
interpreter: /lib/ld-linux-aarch64.so.1 # path to libc interpreter
# - double: aarch64-linux # target we are building for
# system: aarch64-linux # system we are building on
# emulated: true # whether this build is being emulated
# runner: ubuntu-24.04 # GitHub runner the build is running on
# interpreter: /lib/ld-linux-aarch64.so.1 # path to libc interpreter
- double: x86_64-linux
system: x86_64-linux
runner: ubuntu-24.04
interpreter: /lib64/ld-linux-x86-64.so.2
- double: x86_64-darwin
system: x86_64-darwin
runner: macos-13
- double: aarch64-darwin
system: aarch64-darwin
runner: macos-latest
# - double: x86_64-darwin
# system: x86_64-darwin
# runner: macos-13
# - double: aarch64-darwin
# system: aarch64-darwin
# runner: macos-latest
variant:
- flake: ddnnife
artifact: ''
Expand All @@ -44,17 +44,17 @@ jobs:
exclude:
- target: { double: x86_64-linux }
variant: { flake: ddnnife }
- target: { double: aarch64-linux }
variant: { flake: ddnnife }
# - target: { double: aarch64-linux }
# variant: { flake: ddnnife }
include:
- target: { double: aarch64-linux, system: aarch64-linux, emulated: true, runner: ubuntu-24.04 }
variant: { flake: ddnnife-static, artifact: '' }
# - target: { double: aarch64-linux, system: aarch64-linux, emulated: true, runner: ubuntu-24.04 }
# variant: { flake: ddnnife-static, artifact: '' }
- target: { double: x86_64-linux, system: x86_64-linux, runner: ubuntu-24.04, docs: true }
variant: { flake: ddnnife-static, artifact: '' }
- target: { double: x86_64-windows, system: x86_64-linux, runner: ubuntu-24.04 }
variant: { flake: ddnnife-windows, artifact: '' }
- target: { double: x86_64-windows, system: x86_64-linux, runner: ubuntu-24.04 }
variant: { flake: ddnnife-windows-d4-bundled, artifact: '-d4' }
# - target: { double: x86_64-windows, system: x86_64-linux, runner: ubuntu-24.04 }
# variant: { flake: ddnnife-windows, artifact: '' }
# - target: { double: x86_64-windows, system: x86_64-linux, runner: ubuntu-24.04 }
# variant: { flake: ddnnife-windows-d4-bundled, artifact: '-d4' }
runs-on: ${{ matrix.target.runner }}
steps:
- name: Checkout
Expand Down Expand Up @@ -96,6 +96,7 @@ jobs:
with:
name: pages-rust
path: docs

Pages:
if: github.ref == 'refs/heads/main'
needs: Build
Expand Down
84 changes: 42 additions & 42 deletions .github/workflows/Container.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
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 }}
#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 }}
2 changes: 1 addition & 1 deletion .github/workflows/Kotlin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
matrix:
variant:
- ''
- '-d4'
# - '-d4'
runs-on: ubuntu-24.04
steps:
- name: Checkout
Expand Down
56 changes: 28 additions & 28 deletions .github/workflows/Portable.yaml
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@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
#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
64 changes: 32 additions & 32 deletions .github/workflows/Python.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: Python

on:
- push

jobs:
Build:
strategy:
fail-fast: false
matrix:
target:
- double: x86_64-linux
runner: ubuntu-latest
- double: x86_64-darwin
runner: macos-13
- double: aarch64-darwin
runner: macos-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: Build
run: nix build -L .#python
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ddnnife-python-${{ matrix.target.double }}
path: result
#name: Python
#
#on:
# - push
#
#jobs:
# Build:
# strategy:
# fail-fast: false
# matrix:
# target:
# - double: x86_64-linux
# runner: ubuntu-latest
# - double: x86_64-darwin
# runner: macos-13
# - double: aarch64-darwin
# runner: macos-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: Build
# run: nix build -L .#python
# - name: Upload
# uses: actions/upload-artifact@v4
# with:
# name: ddnnife-python-${{ matrix.target.double }}
# path: result

0 comments on commit 188382b

Please sign in to comment.