Skip to content

Commit fec591d

Browse files
Use the new Nix CI tool
1 parent 577fd1e commit fec591d

File tree

2 files changed

+16
-28
lines changed

2 files changed

+16
-28
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
1-
name: ci
2-
3-
on: push
1+
on:
2+
pull_request:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
tags:
9+
- "v?[0-9]+.[0-9]+.[0-9]+*"
410

511
concurrency:
6-
group: ${{ github.ref }}_ci
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
713
cancel-in-progress: true
814

915
jobs:
10-
build:
11-
name: build
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- uses: DeterminateSystems/nix-installer-action@main
16-
- uses: DeterminateSystems/flakehub-cache-action@main
17-
- uses: DeterminateSystems/flake-checker-action@main
18-
- name: Build ELF
19-
run: nix develop --command sbt nativeLink
20-
- name: Build Unikernel
21-
run: nix develop --command ops build ./target/scala-3.6.3/unikernel-scala-out
22-
- uses: actions/upload-artifact@v4
23-
with:
24-
path: |
25-
target/scala-3.6.3/unikernel-scala-out
26-
~/.ops/images/unikernel-scala-out.img
27-
compression-level: 9
28-
overwrite: true
29-
16+
DeterminateCI:
17+
uses: DeterminateSystems/ci/.github/workflows/workflow.yml@main
18+
permissions:
19+
id-token: "write"
20+
contents: "read"

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ Hello from Scala Native NanoVM Unikernel! Your request: Request(method=GET, uri=
103103
## CI
104104
This repo uses `nix` based GitHub actions for caching the development environment dependencies,
105105
instead of the traditional approach with [`coursier/setup-action`](https://github.com/coursier/setup-action) and [`coursier/cache-action`](https://github.com/coursier/cache-action):
106-
1. https://github.com/DeterminateSystems/nix-installer-action
107-
1. https://github.com/DeterminateSystems/flake-checker-action
108-
1. https://github.com/DeterminateSystems/flakehub-cache-action
109-
106+
https://github.com/DeterminateSystems/ci.
110107

111108
## Debugging
112109
Add `--verbose` and `--show-debug` flags to the `ops run ./target/scala-3.6.3/unikernel-scala-out` to see the `qemu` command:

0 commit comments

Comments
 (0)