Skip to content

Commit 2ba8305

Browse files
committed
Update copyright notices, upgrade nixos to 24.05, add php 8.4
1 parent 7453d6c commit 2ba8305

22 files changed

+250
-71
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- "8.1"
2424
- "8.2"
2525
- "8.3"
26+
- "8.4"
2627
steps:
2728
- uses: actions/checkout@v4
2829

@@ -66,11 +67,14 @@ jobs:
6667
- "8.1"
6768
- "8.2"
6869
- "8.3"
70+
- "8.4"
6971
debug:
7072
- ""
7173
include:
7274
- php-version: "8.1"
7375
debug: "debug"
76+
- php-version: "8.4"
77+
debug: "debug"
7478
steps:
7579
- uses: actions/checkout@v4
7680

@@ -121,6 +125,7 @@ jobs:
121125
- "8.1"
122126
- "8.2"
123127
- "8.3"
128+
- "8.4"
124129
debug:
125130
- ""
126131
include:
@@ -204,7 +209,10 @@ jobs:
204209
matrix: ${{ steps.set-matrix.outputs.matrix }}
205210
steps:
206211
- uses: actions/checkout@v4
207-
- uses: cachix/install-nix-action@v26
212+
- uses: cachix/install-nix-action@v27
213+
with:
214+
nix_path: nixpkgs=channel:nixos-24.05
215+
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
208216
- id: set-matrix
209217
name: Generate Nix Matrix
210218
run: |
@@ -232,9 +240,9 @@ jobs:
232240
nix-store.nar-${{ runner.os }}-${{ hashFiles('flake.lock') }}-
233241
nix-store.nar-${{ runner.os }}-
234242
235-
- uses: cachix/install-nix-action@v26
243+
- uses: cachix/install-nix-action@v27
236244
with:
237-
nix_path: nixpkgs=channel:nixos-23.11
245+
nix_path: nixpkgs=channel:nixos-24.05
238246
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
239247

240248
- name: Import Nix Store Cache
@@ -286,6 +294,8 @@ jobs:
286294
- "8.1"
287295
- "8.2"
288296
- "8.3"
297+
# i wish they wouldn't do this
298+
- "8.4.0RC1"
289299
DOCKER_NAME:
290300
- debian
291301
steps:

examples/all-events.php

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

420
// ok, these aren't all examples per se
521
// this one lists all or available PMU events

examples/estimate-overhead.php

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

420
// ok, these aren't all examples per se
521
// this one tries to estimate the overhead of calling Perfidious\Handle::read()

examples/memory.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?php
2+
/**
3+
* Copyright (c) anno Domini nostri Jesu Christi MMXXIV John Boehr & contributors
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Affero General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU Affero General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU Affero General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
218

319
// ok, these aren't all examples per se
420
// this one tries to detect leaks

examples/sieve.php

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

420
// ok, these aren't all examples per se
521
// this one runs the sieve of eratosthenes and outputs the cycles/instructions

examples/sieve2.php

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

420
// ok, these aren't all examples per se
521
// this one runs the sieve of eratosthenes and outputs the cycles/instructions

examples/three-sw-clock.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?php
2+
/**
3+
* Copyright (c) anno Domini nostri Jesu Christi MMXXIV John Boehr & contributors
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Affero General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU Affero General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU Affero General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
218

319
use function Perfidious\open;
420

examples/watch.php

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

420
use function Perfidious\open;
521

flake.lock

Lines changed: 34 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)