From 531e36f3a00ec250e2ec2cf2d2cb89a49fba9be5 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Mon, 11 May 2020 19:43:50 -0700 Subject: [PATCH] ci: add GitHub Actions --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..193c9cd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + +jobs: + pedantry: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Nix + uses: cachix/install-nix-action@v9 + - name: Cargo Pedantry + run: nix-shell --run checkPhase -A mozilla-rust-overlay + + checkPhase: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Nix + uses: cachix/install-nix-action@v9 + - name: Set up git + run: | + git config --global user.email "ofborg@example.com" + git config --global user.name "ofborg" + - name: checkPhase + run: nix-shell --run checkPhase + + nix-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Nix + uses: cachix/install-nix-action@v9 + - name: nix-build + run: nix-build -A ofborg.rs -A ofborg.php