Skip to content

Commit

Permalink
chore: (workflow) run the binary after compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Nov 21, 2024
1 parent 5a91169 commit 3c59c45
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Test CI"
on: [push, pull_request]

jobs:
test:
test-flake:
runs-on: ubuntu-latest
steps:
- name: Clone the repository
Expand All @@ -18,8 +18,38 @@ jobs:
- name: Check for flake configurations
run: nix flake check --all-systems --show-trace

test-llvm:
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Build the project with llvm package
run: nix build .

- name: Runt the llvm hosted binary
run: nix run .

test-gnu:
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Build the project with gnu package
run: nix build .#gnu

- name: Runt the gnu hosted binary
run: nix run .#gnu

0 comments on commit 3c59c45

Please sign in to comment.