Skip to content

Initial vmtests

Initial vmtests #9

Workflow file for this run

name: release
on:
pull_request:
push:
# on:
# push:
# branches:
# - main
jobs:
release:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@main
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Set up nix dev env
run: nix develop --command echo 0
- name: Build `lightswitch` statically linked with glibc
run: nix develop --command bash -c 'RUSTFLAGS="-C target-feature=+crt-static" cargo build --release --target x86_64-unknown-linux-gnu'
- name: Checks
run: |
ls -lah target/x86_64-unknown-linux-gnu/release/lightswitch
ldd target/x86_64-unknown-linux-gnu/release/lightswitch
- name: Upload binary
uses: actions/upload-artifact@main
with:
name: lightswitchs
path: target/x86_64-unknown-linux-gnu/release/lightswitch