build: Static build with glibc #3
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: 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: Build statically linked lightswitch with glibc | |
run: nix develop --command RUSTFLAGS=" C target-feature=+crt-static" cargo build --release --target x86_64-unknown-linux-gnu | |
- name: Upload binary | |
uses: actions/upload-artifact@main | |
with: | |
name: lightswitch | |
path: target/x86_64-unknown-linux-gnu/release/lightswitch |