diff options
Diffstat (limited to 'ofborg/.github/workflows')
| -rw-r--r-- | ofborg/.github/workflows/ci.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ofborg/.github/workflows/ci.yml b/ofborg/.github/workflows/ci.yml new file mode 100644 index 0000000000..8f71a46e50 --- /dev/null +++ b/ofborg/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: [released] + pull_request: + +jobs: + checkPhase: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Nix + uses: cachix/install-nix-action@v17 + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: Set up git + run: | + git config --global user.email "ofborg@example.com" + git config --global user.name "ofborg" + - name: checkPhase + run: nix-shell --pure --run "cargo test" + + nix-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Nix + uses: cachix/install-nix-action@v17 + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: nix-build + run: nix-build -A ofborg.rs |
