Skip to content

Commit

Permalink
feat(ci): update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
uulm-janbaudisch committed Dec 1, 2024
1 parent e5d5f43 commit c79f630
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 88 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Nix
uses: DeterminateSystems/nix-installer-action@v13
uses: DeterminateSystems/nix-installer-action@v16
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@v7
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Check
run: nix flake check -L

Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
include:
- 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 }
- target: { double: x86_64-linux, system: x86_64-linux, runner: ubuntu-24.04 }
variant: { flake: ddnnife-static, artifact: '' }
- target: { double: x86_64-windows, system: x86_64-linux, runner: ubuntu-24.04 }
variant: { flake: ddnnife-windows, artifact: '' }
Expand All @@ -63,11 +63,11 @@ jobs:
if: ${{ matrix.target.emulated }}
run: sudo apt-get install -y qemu-user-static
- name: Nix
uses: DeterminateSystems/nix-installer-action@v13
uses: DeterminateSystems/nix-installer-action@v16
with:
extra-conf: extra-platforms = ${{ matrix.target.system }}
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@v7
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build
run: nix build -L .#packages.${{ matrix.target.system }}.${{ matrix.variant.flake }}
- name: Set interpreter
Expand All @@ -84,15 +84,3 @@ jobs:
with:
name: ddnnife-${{ matrix.target.double }}${{ matrix.variant.artifact }}
path: result
- name: Docs
if: ${{ matrix.target.docs }}
run: |
nix build .#documentation
mkdir docs
cp -rL result/share/doc docs/rust
- name: Upload (docs)
if: ${{ matrix.target.docs }}
uses: actions/upload-artifact@v4
with:
name: pages-rust
path: docs
4 changes: 2 additions & 2 deletions .github/workflows/Container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
if: ${{ matrix.target.emulated }}
run: sudo apt-get install -y qemu-user-static
- name: Nix
uses: DeterminateSystems/nix-installer-action@v13
uses: DeterminateSystems/nix-installer-action@v16
with:
extra-conf: extra-platforms = ${{ matrix.target.double }}
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@v7
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build
run: nix build -L .#packages.${{ matrix.target.double }}.container
- name: Login
Expand Down
19 changes: 3 additions & 16 deletions .github/workflows/Kotlin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
if: ${{ matrix.target.emulated }}
run: sudo apt-get install -y qemu-user-static
- name: Nix
uses: DeterminateSystems/nix-installer-action@v13
uses: DeterminateSystems/nix-installer-action@v16
with:
extra-conf: extra-platforms = ${{ matrix.target.double }}
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@v7
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build
run: |
nix build -L .#packages.${{ matrix.target.double }}.libddnnife${{ matrix.variant.flake }}
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Nix
uses: DeterminateSystems/nix-installer-action@v13
uses: DeterminateSystems/nix-installer-action@v16
- name: Build (bindgen)
run: |
nix build -L .#bindgen
Expand Down Expand Up @@ -115,16 +115,3 @@ jobs:
with:
name: ddnnife-kotlin${{ matrix.variant.suffix }}
path: bindings/kotlin/build/libs
- name: Docs
if: ${{ matrix.variant.suffix != '-d4' }}
run: |
cd bindings/kotlin
gradle dokkaHtml --no-daemon -Plibraries=../../libraries -Pbindgen=../../uniffi-bindgen
mkdir docs
mv build/dokka/html docs/kotlin
- name: Upload (docs)
if: ${{ matrix.variant.suffix != '-d4' }}
uses: actions/upload-artifact@v4
with:
name: pages-kotlin
path: bindings/kotlin/docs
23 changes: 0 additions & 23 deletions .github/workflows/Pages.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/Portable.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/Python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Nix
uses: DeterminateSystems/nix-installer-action@v13
uses: DeterminateSystems/nix-installer-action@v16
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@v7
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build
run: nix build -L .#python
- name: Upload
Expand Down

0 comments on commit c79f630

Please sign in to comment.