ffd30a69 |
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
|
1eb567af |
runs-on: ubuntu-latest
|
ffd30a69 |
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
49f27ccd |
- uses: actions/checkout@v3
|
adbf8e6d |
|
fb8b2f2e |
- uses: cachix/install-nix-action@v20
|
6ae52409 |
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
ffd30a69 |
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
|
cd0882b3 |
mkdir out
|
3655558c |
nix build
|
8add725b |
nix develop -c zig build -Dtarget=aarch64-linux-gnu && mv zig-out/bin/sigexec out/sigexec-aarch64-linux-gnu
nix develop -c zig build -Dtarget=aarch64-linux-musl && mv zig-out/bin/sigexec out/sigexec-aarch64-linux-musl
nix develop -c zig build -Dtarget=aarch64-macos-none && mv zig-out/bin/sigexec out/sigexec-aarch64-macos-none
nix develop -c zig build -Dtarget=i386-linux-gnu && mv zig-out/bin/sigexec out/sigexec-i386-linux-gnu
nix develop -c zig build -Dtarget=x86_64-linux-gnu && mv zig-out/bin/sigexec out/sigexec-x86_64-linux-gnu
nix develop -c zig build -Dtarget=x86_64-linux-musl && mv zig-out/bin/sigexec out/sigexec-x86_64-linux-musl
nix develop -c zig build -Dtarget=x86_64-macos-none && mv zig-out/bin/sigexec out/sigexec-x86_64-macos-none
|
69022206 |
- name: Run test
run: |
|
8f1d472a |
nix run .\#do-test
|
99206bc5 |
- uses: actions/upload-artifact@v3
with:
name: executables
path: |
out/sigexec-*
|