Skip to content

Commit

Permalink
Update copyright notices, upgrade nixos to 24.05, add php 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jbboehr committed Sep 28, 2024
1 parent 7453d6c commit 2ba8305
Show file tree
Hide file tree
Showing 22 changed files with 250 additions and 71 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -66,11 +67,14 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
debug:
- ""
include:
- php-version: "8.1"
debug: "debug"
- php-version: "8.4"
debug: "debug"
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -121,6 +125,7 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
debug:
- ""
include:
Expand Down Expand Up @@ -204,7 +209,10 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-24.05
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
- id: set-matrix
name: Generate Nix Matrix
run: |
Expand Down Expand Up @@ -232,9 +240,9 @@ jobs:
nix-store.nar-${{ runner.os }}-${{ hashFiles('flake.lock') }}-
nix-store.nar-${{ runner.os }}-
- uses: cachix/install-nix-action@v26
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-23.11
nix_path: nixpkgs=channel:nixos-24.05
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"

- name: Import Nix Store Cache
Expand Down Expand Up @@ -286,6 +294,8 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
# i wish they wouldn't do this
- "8.4.0RC1"
DOCKER_NAME:
- debian
steps:
Expand Down
16 changes: 16 additions & 0 deletions examples/all-events.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env php
<?php
/**
* Copyright (c) anno Domini nostri Jesu Christi MMXXIV John Boehr & contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

// ok, these aren't all examples per se
// this one lists all or available PMU events
Expand Down
16 changes: 16 additions & 0 deletions examples/estimate-overhead.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env php
<?php
/**
* Copyright (c) anno Domini nostri Jesu Christi MMXXIV John Boehr & contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

// ok, these aren't all examples per se
// this one tries to estimate the overhead of calling Perfidious\Handle::read()
Expand Down
16 changes: 16 additions & 0 deletions examples/memory.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
<?php
/**
* Copyright (c) anno Domini nostri Jesu Christi MMXXIV John Boehr & contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

// ok, these aren't all examples per se
// this one tries to detect leaks
Expand Down
16 changes: 16 additions & 0 deletions examples/sieve.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env php
<?php
/**
* Copyright (c) anno Domini nostri Jesu Christi MMXXIV John Boehr & contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

// ok, these aren't all examples per se
// this one runs the sieve of eratosthenes and outputs the cycles/instructions
Expand Down
16 changes: 16 additions & 0 deletions examples/sieve2.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env php
<?php
/**
* Copyright (c) anno Domini nostri Jesu Christi MMXXIV John Boehr & contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

// ok, these aren't all examples per se
// this one runs the sieve of eratosthenes and outputs the cycles/instructions
Expand Down
16 changes: 16 additions & 0 deletions examples/three-sw-clock.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
<?php
/**
* Copyright (c) anno Domini nostri Jesu Christi MMXXIV John Boehr & contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

use function Perfidious\open;

Expand Down
16 changes: 16 additions & 0 deletions examples/watch.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env php
<?php
/**
* Copyright (c) anno Domini nostri Jesu Christi MMXXIV John Boehr & contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

use function Perfidious\open;

Expand Down
54 changes: 34 additions & 20 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2ba8305

Please sign in to comment.