Skip to content

Commit 04c291a

Browse files
committed
Move from snapcache repo
Copy benchmark and environment from https://github.com/staticweb-io/snapcache
0 parents  commit 04c291a

File tree

17 files changed

+1586
-0
lines changed

17 files changed

+1586
-0
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[*.php]
2+
indent_style = space
3+
indent_size = 4

.envrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
use flake

.github/workflows/build.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- '**.md'
9+
- 'update.json'
10+
tags:
11+
- 'v*'
12+
pull_request:
13+
branches:
14+
- master
15+
paths-ignore:
16+
- '**.md'
17+
- 'update.json'
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
23+
name: Build
24+
25+
steps:
26+
- name: Checkout repo
27+
uses: actions/checkout@v4
28+
29+
- name: Install Nix
30+
uses: DeterminateSystems/determinate-nix-action@v3
31+
32+
- name: Build all checks and outputs
33+
run: |
34+
bin/test-releases 2
35+
bin/test-php-versions 2
36+
nix develop ./dev -c om ci
37+
cd dev
38+
nix develop -c om ci
39+
40+
- name: Build plugin zip
41+
run: |
42+
nix build .#plugin
43+
cp result/snapcache.zip plugin.zip
44+
45+
- name: Upload plugin as artifact
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: plugin
49+
path: plugin.zip
50+
51+
- name: Create Snapshot Release
52+
uses: softprops/action-gh-release@v2
53+
with:
54+
files: plugin.zip
55+
name: snapshot
56+
prerelease: true
57+
tag_name: snapshot
58+
59+
- name: Create Stable Release
60+
if: startsWith(github.ref, 'refs/tags/v')
61+
uses: softprops/action-gh-release@v2
62+
with:
63+
files: plugin.zip

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.*
2+
!.editorconfig
3+
!.envrc
4+
!.github
5+
!.gitignore
6+
!.kiro
7+
!.vscode
8+
9+
/vendor/
10+
/vendor_prefixed/
11+
node_modules/
12+
bench*.json
13+
coverage/
14+
data
15+
flame*.svg
16+
admin/*.js*
17+
*.img
18+
*.pid
19+
plot*.png
20+
result
21+
result-*

.vscode/settings.json

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"intelephense.files.exclude": [
3+
"**/.git/**",
4+
"**/.svn/**",
5+
"**/.hg/**",
6+
"**/CVS/**",
7+
"**/.DS_Store/**",
8+
"**/dev/data/**",
9+
"**/node_modules/**",
10+
"**/bower_components/**",
11+
"**/result/**",
12+
"**/result-*/**",
13+
"**/vendor/**/{Tests,tests}/**",
14+
"**/.history/**",
15+
"**/vendor/**/vendor/**",
16+
"/nix/store/**"
17+
],
18+
"intelephense.stubs": [
19+
"apache",
20+
"apcu",
21+
"bcmath",
22+
"bz2",
23+
"calendar",
24+
"com_dotnet",
25+
"Core",
26+
"ctype",
27+
"curl",
28+
"date",
29+
"dba",
30+
"dom",
31+
"enchant",
32+
"exif",
33+
"FFI",
34+
"fileinfo",
35+
"filter",
36+
"fpm",
37+
"ftp",
38+
"gd",
39+
"gettext",
40+
"gmp",
41+
"hash",
42+
"iconv",
43+
"imagick",
44+
"imap",
45+
"intl",
46+
"json",
47+
"ldap",
48+
"libxml",
49+
"mbstring",
50+
"memcached",
51+
"meta",
52+
"mysqli",
53+
"oci8",
54+
"odbc",
55+
"openssl",
56+
"pcntl",
57+
"pcre",
58+
"PDO",
59+
"pgsql",
60+
"Phar",
61+
"posix",
62+
"pspell",
63+
"random",
64+
"readline",
65+
"redis",
66+
"Reflection",
67+
"session",
68+
"shmop",
69+
"SimpleXML",
70+
"snmp",
71+
"soap",
72+
"sockets",
73+
"sodium",
74+
"SPL",
75+
"sqlite3",
76+
"standard",
77+
"superglobals",
78+
"sysvmsg",
79+
"sysvsem",
80+
"sysvshm",
81+
"tidy",
82+
"tokenizer",
83+
"wordpress",
84+
"xml",
85+
"xmlreader",
86+
"xmlrpc",
87+
"xmlwriter",
88+
"xsl",
89+
"Zend OPcache",
90+
"zip",
91+
"zlib"
92+
]
93+
}

0 commit comments

Comments
 (0)