This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
build(nix): update flake lock #671
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [ push, pull_request ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v18 | |
- uses: cachix/cachix-action@v12 | |
continue-on-error: true | |
with: | |
name: enarx | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix flake check -L --show-trace --keep-going | |
build: | |
needs: [ check ] | |
strategy: | |
matrix: | |
output: | |
- chat-client-c | |
- chat-client-cpp | |
- chat-client-rust | |
- chat-server-rust | |
- cryptle-rust | |
- fibonacci-c | |
- fibonacci-cpp | |
- fibonacci-go | |
- fibonacci-rust | |
- fibonacci-zig | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v18 | |
- uses: cachix/cachix-action@v12 | |
continue-on-error: true | |
with: | |
name: enarx | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Build ${{ matrix.output }} Enarx package | |
run: nix build -L '.#${{ matrix.output }}' | |
- run: nix run --inputs-from . 'nixpkgs#coreutils' -- --coreutils-prog=ginstall -p ./result/main.wasm ${{ matrix.output }}.wasm | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.output }}.wasm | |
path: ${{ matrix.output }}.wasm | |
# TODO: Publish packages once | |
# - https://github.com/profianinc/drawbridge/issues/148 | |
# - https://github.com/enarx/enarx/issues/2048 | |
# are done | |
#- run: enarx package publish "examples/${{ matrix.output }}:$(nix eval --raw '.#${{ matrix.output }}.version')" ./result |