Skip to content

Commit

Permalink
ci: Add initial CI file.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Feb 8, 2022
1 parent 112acac commit 32694b0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Builds

on:
pull_request:
push:

jobs:
build:
name: 'PHP ${{ matrix.php.major }}.${{ matrix.php.minor }}'
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
php:
- major: 8
minor: 1
- major: 8
minor: 0
- major: 7
minor: 4
- major: 7
minor: 3
- major: 7
minor: 2
- major: 7
minor: 1
- major: 7
minor: 0
- major: 5
minor: 6
steps:
- uses: actions/checkout@v2

- name: Install Nix
uses: cachix/install-nix-action@v16

- name: Build PHP
run: nix build .php${{ matrix.php.major }}${{ matrix.php.minor }}

0 comments on commit 32694b0

Please sign in to comment.