aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJán Jančár2025-07-14 16:30:58 +0200
committerGitHub2025-07-14 16:30:58 +0200
commitba6657f54ed7865145c216ec13160ecf46e07633 (patch)
tree9cc81f1f8cb4ffb46b9e92415ba42ffb9cfa9c4a /.github/workflows
parent07c5efe15e2ca88fe3818c9653a2a425923cb1c0 (diff)
parent1f582350e4c938265e0cb7f2d6369ee08d9ae4a9 (diff)
downloadECTester-ba6657f54ed7865145c216ec13160ecf46e07633.tar.gz
ECTester-ba6657f54ed7865145c216ec13160ecf46e07633.tar.zst
ECTester-ba6657f54ed7865145c216ec13160ecf46e07633.zip
Merge pull request #38 from quapka/build-rest-with-nix
Wrap building applet, reader and common with Nix
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/nix.yml59
1 files changed, 59 insertions, 0 deletions
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml
index 71efe06..9c3ff62 100644
--- a/.github/workflows/nix.yml
+++ b/.github/workflows/nix.yml
@@ -50,3 +50,62 @@ jobs:
- name: List library
run: nix run ".?submodules=1#${{ matrix.library }}.default" -- list-libs
+
+ reader:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+
+ name: Build reader
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: recursive
+ fetch-tags: true
+ fetch-depth: -1
+
+ - uses: DeterminateSystems/nix-installer-action@v13
+ with:
+ diagnostic-endpoint: ""
+
+ - uses: DeterminateSystems/magic-nix-cache-action@v7
+ with:
+ diagnostic-endpoint: ""
+
+ - name: Build reader
+ run: |
+ nix build ".?submodules=1#reader"
+
+ - name: Show reader --help
+ run: |
+ nix run ".?submodules=1#reader" -- --help
+
+ applet:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+
+ strategy:
+ matrix:
+ sdk: [ "222", "305", "320", "All" ]
+ fail-fast: false
+
+ name: Build applet ${{ matrix.sdk }}
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: recursive
+ fetch-tags: true
+ fetch-depth: -1
+
+ - uses: DeterminateSystems/nix-installer-action@v13
+ with:
+ diagnostic-endpoint: ""
+
+ - uses: DeterminateSystems/magic-nix-cache-action@v7
+ with:
+ diagnostic-endpoint: ""
+
+ - name: Build applet
+ run: |
+ nix build ".?submodules=1#applet${{ matrix.sdk }}"