Skip to content

Commit d53ad2e

Browse files
rvolosatovsplatten
authored andcommitted
ci: build and upload Cryptle
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent 2ab976c commit d53ad2e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build
2+
on: [ push, pull_request ]
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
jobs:
7+
build:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: cachix/install-nix-action@v17
12+
- uses: cachix/cachix-action@v10
13+
with:
14+
name: enarx
15+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
16+
- name: Build Cryptle Enarx package
17+
run: nix build -L '.#cryptle-enarx'
18+
- run: nix run --inputs-from . 'nixpkgs#coreutils' -- --coreutils-prog=ginstall -p ./result/main.wasm cryptle.wasm
19+
- uses: actions/upload-artifact@v3
20+
with:
21+
name: cryptle.wasm
22+
path: cryptle.wasm

0 commit comments

Comments
 (0)