Skip to content

Commit

Permalink
🔧 Setup GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono committed Dec 10, 2023
1 parent ec5d91a commit 3f8dd9a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build rust

on:
push:
branches: [ "main" ]

jobs:
build-with-nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v20
with:
nix_path: "nixpkgs=channel:release-23.05"
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix build
build-with-rustup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: cargo build

0 comments on commit 3f8dd9a

Please sign in to comment.