Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚚dev → dev-nyanperidot🚚 #291

Open
wants to merge 1,376 commits into
base: dev-nyanperidot
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1376 commits
Select commit Hold shift + click to select a range
aef534e
fix: reorganize logs
Pctg-x8 Aug 29, 2023
8e0b9d4
fix: merge internal allocation step
Pctg-x8 Aug 29, 2023
e40237c
fix: trace block acquisition and release
Pctg-x8 Aug 29, 2023
cba9d00
add: allocating with content layout
Pctg-x8 Aug 29, 2023
38e51b2
fix: use tracing in linux cradle
Pctg-x8 Aug 30, 2023
ab55282
fix: reduce allocation for large-object slab
Pctg-x8 Aug 30, 2023
d1e4627
add: dedicated allocation extension suppoer
Pctg-x8 Aug 30, 2023
b65141a
fix: windows global to window local point translation
Pctg-x8 Aug 30, 2023
15fff9c
Merge pull request #413 from Pctg-x8/fix-pointer-input-position
Pctg-x8 Aug 30, 2023
af790db
Merge branch 'dev' into ft-memory-manager
Pctg-x8 Aug 30, 2023
6a19efc
add: optimal multiple image allocation
Pctg-x8 Aug 31, 2023
1b87a11
fix: width
Pctg-x8 Aug 31, 2023
6771c58
fix: interop feature name
Pctg-x8 Aug 31, 2023
625776b
fix: for vg examples
Pctg-x8 Aug 31, 2023
8ae9f9b
fix: alignment
Pctg-x8 Aug 31, 2023
fbbf0aa
fix: no subslices
Pctg-x8 Sep 1, 2023
52d60ed
add: explicit sync ops
Pctg-x8 Sep 1, 2023
712b189
fix: examples
Pctg-x8 Sep 1, 2023
084a30b
fix: code splitting
Pctg-x8 Sep 1, 2023
8cdadbb
fix: precise visibility control
Pctg-x8 Sep 1, 2023
a9c6729
fix: crate only object
Pctg-x8 Sep 1, 2023
2743646
fix: import traits
Pctg-x8 Sep 1, 2023
426bac5
rm: warnings
Pctg-x8 Sep 1, 2023
673641c
fix: safety guaranteed
Pctg-x8 Sep 1, 2023
08d2ac6
add: raw ops
Pctg-x8 Sep 2, 2023
4c6747f
add: buffer-only new transfer batch
Pctg-x8 Sep 6, 2023
69e195e
fix: bedrock framebuffer builder
Pctg-x8 Sep 7, 2023
10bb7b9
Merge pull request #414 from Pctg-x8/fix-bedrock-fb-builder
Pctg-x8 Sep 7, 2023
4e417ac
Merge branch 'dev' into ft-memory-manager
Pctg-x8 Sep 10, 2023
0dce038
add: batching bind operation
Pctg-x8 Sep 10, 2023
77ceb48
fix: refactor
Pctg-x8 Sep 10, 2023
e944f7c
fix: ptr
Pctg-x8 Sep 10, 2023
6da857f
Merge pull request #412 from Pctg-x8/ft-memory-manager
Pctg-x8 Sep 14, 2023
e19c7ea
rm: double bound
Pctg-x8 Sep 15, 2023
7f08f44
fix: command object framebuffer lifetimes
Pctg-x8 Sep 16, 2023
f9bbdc1
fix: examples
Pctg-x8 Sep 16, 2023
c2aad3e
Merge pull request #416 from Pctg-x8/fix-framebuffer
Pctg-x8 Sep 16, 2023
14f0cc2
fix: pvp typedef
Pctg-x8 Sep 20, 2023
082a894
fix: examples
Pctg-x8 Sep 22, 2023
42ce61d
fix: feature gates for impls
Pctg-x8 Sep 22, 2023
2e5ef7c
rm: unused old impl
Pctg-x8 Sep 22, 2023
7d83788
Merge pull request #417 from Pctg-x8/fix-pipeline-builder-update
Pctg-x8 Sep 22, 2023
db882e7
Merge branch 'dev' into fix-memory-double-bound
Pctg-x8 Sep 23, 2023
3466f2d
Merge pull request #415 from Pctg-x8/fix-memory-double-bound
Pctg-x8 Sep 23, 2023
4ede398
fix: autodetect default platform for runs
Pctg-x8 Sep 23, 2023
2ba0930
add: tracing support for mac cradle
Pctg-x8 Sep 23, 2023
3007b1b
Merge pull request #418 from Pctg-x8/ft-tools-host-platform-auto-detect
Pctg-x8 Sep 23, 2023
0c99647
fix: update macos vulkan sdk
Pctg-x8 Nov 23, 2023
1e7efbe
fix: finding uploadable memory for unified
Pctg-x8 Nov 23, 2023
182215a
fix: bedrock updates
Pctg-x8 Nov 23, 2023
0985c9b
fix: field name
Pctg-x8 Nov 23, 2023
d26cf6b
fix: split trigger definitions
Pctg-x8 Nov 23, 2023
d6ad4ed
fix: workflow field name
Pctg-x8 Nov 23, 2023
64d76cb
fix: split workflow definition
Pctg-x8 Nov 23, 2023
a871823
fix: rename slack notification type
Pctg-x8 Nov 23, 2023
9f3a03c
fix: simplify expr with record wildcard
Pctg-x8 Nov 23, 2023
4f8eba1
fix: codeform
Pctg-x8 Nov 23, 2023
8a069a2
add: llvm installation action defs
Pctg-x8 Nov 23, 2023
d22faac
fix: simplify expr
Pctg-x8 Nov 24, 2023
b69dec1
Merge pull request #419 from Pctg-x8/fix-mac-tracing
Pctg-x8 Nov 24, 2023
17d5566
fix: typo filename
Pctg-x8 Nov 24, 2023
dbaf6b2
fix: identifier
Pctg-x8 Nov 24, 2023
1d0fea7
fix: point free style
Pctg-x8 Nov 24, 2023
4889520
fix: revert workflowBuilder
Pctg-x8 Nov 24, 2023
2704b04
rm; auto-delivery-dev to generated workflow
Pctg-x8 Nov 24, 2023
7830474
fix: checkout name
Pctg-x8 Nov 24, 2023
4a50246
fix: line width
Pctg-x8 Nov 24, 2023
eb1498d
rm: sdk build workflow to generator
Pctg-x8 Nov 24, 2023
48850de
rm: makefile for workflows
Pctg-x8 Nov 24, 2023
5e8f5dc
fix: reorder modifiers
Pctg-x8 Nov 24, 2023
46922cb
fix: generalize
Pctg-x8 Nov 24, 2023
750de1e
fix: refactor script step
Pctg-x8 Nov 24, 2023
f59ed43
fix: generalize strategy matrix ops
Pctg-x8 Nov 24, 2023
f299276
fix: split artifact config
Pctg-x8 Nov 24, 2023
450186e
fix: format
Pctg-x8 Nov 24, 2023
919e20a
fix: refactor sdk builder
Pctg-x8 Nov 25, 2023
08db3e8
fix: flip direction
Pctg-x8 Nov 25, 2023
9e89392
fix: optimize permissions encoding
Pctg-x8 Nov 25, 2023
ca6ce3f
fix: use composition utility package
Pctg-x8 Nov 25, 2023
e39f1ca
add: doc
Pctg-x8 Nov 25, 2023
be4c616
fix: tools building is now in makefile
Pctg-x8 Nov 25, 2023
510428c
add: build target
Pctg-x8 Nov 25, 2023
ee8483c
fix: packaging script
Pctg-x8 Nov 25, 2023
5fc6b31
fix: maxdepth
Pctg-x8 Nov 25, 2023
c9aa361
rm: copying old build scripts
Pctg-x8 Nov 25, 2023
fd20145
fix: use form
Pctg-x8 Nov 25, 2023
04c39d1
fix: point free for batchBuilder
Pctg-x8 Nov 25, 2023
0829d1c
fix: split target defs
Pctg-x8 Nov 25, 2023
578e747
fix: refactor builder main
Pctg-x8 Nov 25, 2023
6e8f0bb
fix: localize actions
Pctg-x8 Nov 25, 2023
6a54320
fix: cleanup
Pctg-x8 Nov 26, 2023
0c85e55
fix: use provided
Pctg-x8 Nov 26, 2023
73b05a5
fix: constant as identifier
Pctg-x8 Nov 26, 2023
06af657
fix: rename
Pctg-x8 Nov 26, 2023
fd08fb3
Merge pull request #421 from Pctg-x8/ft-workflow-refactor
Pctg-x8 Nov 26, 2023
26c9c4d
fix: wrap generated extras by box
Pctg-x8 Feb 22, 2024
d9cbf7f
Merge pull request #422 from Pctg-x8/fix-pvp-extra-boxing
Pctg-x8 Feb 22, 2024
d04ea13
fix: cargo update
Pctg-x8 May 3, 2024
7a8ee94
fix: modules compile errors
Pctg-x8 May 3, 2024
c174473
fix: code width
Pctg-x8 May 3, 2024
dd353f5
fix: examples
Pctg-x8 May 4, 2024
2826c4e
fix: windows transparent cradle
Pctg-x8 May 4, 2024
1073aa9
Merge pull request #423 from Pctg-x8/fix-upgrade-codebase
Pctg-x8 May 4, 2024
478ebc8
add: trs matrix constructor
Pctg-x8 Jun 25, 2024
df10b82
add: array operations for memory manager
Pctg-x8 Jun 25, 2024
c68a8eb
fix: bedrock update corruption
Pctg-x8 Jun 25, 2024
937a111
fix: examples
Pctg-x8 Jun 25, 2024
b94e0ae
fix: windows cradle
Pctg-x8 Jun 25, 2024
9ad9c05
fix: android cradle
Pctg-x8 Jun 25, 2024
4c48f5e
fix: linux cradle
Pctg-x8 Jun 25, 2024
c0a1099
fix: mac cradle
Pctg-x8 Jun 25, 2024
7d25702
fix: compilation error
Pctg-x8 Jun 25, 2024
2d0af39
fix: type error
Pctg-x8 Jun 26, 2024
331216e
Merge pull request #426 from Pctg-x8/ft-add-helper-fns
Pctg-x8 Jun 26, 2024
e2c08dd
fix: optional dependency for math interops
Pctg-x8 Jul 10, 2024
5b2b7a5
add: real trait
Pctg-x8 Jul 10, 2024
f75e44b
fix: revert euclid update
Pctg-x8 Jul 10, 2024
b70ae28
Merge pull request #427 from Pctg-x8/fix-less-math-deps
Pctg-x8 Jul 10, 2024
4b9c7dd
fix: async-message based runtime
Pctg-x8 Nov 4, 2024
e656a4d
add: mac cradle rewriting
Pctg-x8 Nov 4, 2024
dfe9b81
rm: RenderPassTemplate
Pctg-x8 Nov 4, 2024
40fa1ca
fix: core compile errors
Pctg-x8 Nov 4, 2024
331e2df
fix: examples
Pctg-x8 Nov 5, 2024
0521cab
fix: update app version type generated
Pctg-x8 Nov 5, 2024
43586f9
fix: cradle links
Pctg-x8 Nov 5, 2024
ee55546
fix: upgrade checkout action
Pctg-x8 Nov 5, 2024
f92a657
fix: upgrade cache v4
Pctg-x8 Nov 5, 2024
a8c27ac
fix: upgrade configure-aws-credentials v4
Pctg-x8 Nov 5, 2024
9eeda7d
Merge pull request #430 from Pctg-x8/fix-bedrock-updates-041105
Pctg-x8 Nov 5, 2024
cb55b8d
Merge branch 'dev' into ft-new-runtime-loop
Pctg-x8 Nov 5, 2024
d9657b8
fix: unrecoverable graphics subsystem initialization
Pctg-x8 Nov 5, 2024
0f6c779
rm: old error type
Pctg-x8 Nov 5, 2024
87cc972
fix: no macros
Pctg-x8 Nov 5, 2024
456b1bc
fix: android runtime loop
Pctg-x8 Nov 5, 2024
ff704c6
fix: transparent window cradle
Pctg-x8 Nov 5, 2024
08deffd
fix: tracing based vklog instrument
Pctg-x8 Nov 6, 2024
3dcd4f1
fix: hook precommit make target
Pctg-x8 Nov 6, 2024
74e780e
fix: new runtime for linux
Pctg-x8 Nov 6, 2024
f897c4b
fix: no const fn
Pctg-x8 Nov 6, 2024
15fa3aa
fix: share common libs between workspace members
Pctg-x8 Nov 6, 2024
9655142
Merge pull request #431 from Pctg-x8/ft-new-runtime-loop
Pctg-x8 Nov 6, 2024
18013d1
Merge branch 'dev' into fix-efficiency-audio
Pctg-x8 Nov 6, 2024
0577d66
fix: use rwlock from parking_lot
Pctg-x8 Nov 6, 2024
acc1e27
fix: thread safe AAsset
Pctg-x8 Nov 6, 2024
941a002
fix: use asset object directly
Pctg-x8 Nov 6, 2024
222aa7b
fix: multithread safe linux cradle
Pctg-x8 Nov 7, 2024
3759ab5
Merge pull request #434 from Pctg-x8/fix-mt-linux-cradle
Pctg-x8 Nov 7, 2024
9872fb5
add: async-std based async serialization impl
Pctg-x8 Nov 7, 2024
8fa0e43
add: async archive reader/writer
Pctg-x8 Nov 7, 2024
23eed36
fix: compile errors
Pctg-x8 Nov 7, 2024
4d9002d
add: async version of pvp
Pctg-x8 Nov 7, 2024
ca8f34e
fix: compile errors
Pctg-x8 Nov 7, 2024
9fd2b47
fix: from_asset return type
Pctg-x8 Nov 7, 2024
17a92fe
fix: sync from_file errtype conversion
Pctg-x8 Nov 7, 2024
d19a160
fix: no ok
Pctg-x8 Nov 7, 2024
78ac07e
Merge pull request #436 from Pctg-x8/ft-async-archiver
Pctg-x8 Nov 7, 2024
99b60c4
fix: use metal surface extensions
Pctg-x8 Nov 9, 2024
dda12bb
Merge pull request #437 from Pctg-x8/ft-metal-surface
Pctg-x8 Nov 9, 2024
4322972
fix: compile errors
Pctg-x8 Nov 10, 2024
4b725a8
fix: backbuffer by-ref getter
Pctg-x8 Nov 10, 2024
9e4b053
fix: examples
Pctg-x8 Nov 10, 2024
c518606
add: linux cradle sync constraint
Pctg-x8 Nov 10, 2024
f3bd56a
fix: typename
Pctg-x8 Nov 10, 2024
07dae60
Merge pull request #438 from Pctg-x8/fix-bedrock-updates-041110
Pctg-x8 Nov 10, 2024
392419d
fix: upgrade clap and remove log(use tracing)
Pctg-x8 Nov 24, 2024
a5ce927
fix: better error handling
Pctg-x8 Nov 24, 2024
3a40fb2
fix: parallel process compilation with async
Pctg-x8 Nov 24, 2024
3208110
fix: bedrock updates 20241208
Pctg-x8 Dec 8, 2024
267ac88
add: cargo update for all workspaces
Pctg-x8 Dec 8, 2024
5961425
fix: vg-sdf-renderer example
Pctg-x8 Dec 8, 2024
324e8c1
fix: vg example
Pctg-x8 Dec 8, 2024
8eac810
fix: sync/send for freetype system instance
Pctg-x8 Dec 9, 2024
6b5cff6
fix: bedrock latest updates
Pctg-x8 Dec 9, 2024
8a87233
rm: no unwrap
Pctg-x8 Dec 9, 2024
7d69e6f
rm: no unwrap
Pctg-x8 Dec 9, 2024
e7e92c5
fix: shaderbuild symbol refs
Pctg-x8 Dec 9, 2024
3c8cff7
fix: bedrock latest update
Pctg-x8 Dec 9, 2024
63d8922
fix: image/buffer object creation
Pctg-x8 Dec 9, 2024
ab938df
fix: khr suffix
Pctg-x8 Dec 9, 2024
983439c
fix: annotate type
Pctg-x8 Dec 9, 2024
ad79e13
fix: bedrock rename
Pctg-x8 Dec 12, 2024
83dfd55
fix: line width
Pctg-x8 Dec 12, 2024
dbdb653
fix: windows presenter object creation
Pctg-x8 Dec 12, 2024
c8b620a
fix: upgrade cradle widestring
Pctg-x8 Dec 12, 2024
0f3519d
fix: typo
Pctg-x8 Dec 12, 2024
7c7b5d4
Merge pull request #439 from Pctg-x8/fix-bedrock-updates-20241208
Pctg-x8 Dec 12, 2024
52427b3
fix: thread safety for freetype usage
Pctg-x8 Dec 12, 2024
29b4663
fix: thread safety for fontconfig usage
Pctg-x8 Dec 12, 2024
a9794e8
fix: examples
Pctg-x8 Dec 12, 2024
d2e8f6f
Merge pull request #440 from Pctg-x8/fix-thread-safe-ftfc
Pctg-x8 Dec 12, 2024
a2245d9
Merge branch 'dev' into fix-refactor-shaderbuild
Pctg-x8 Dec 21, 2024
a0315d5
fix: parse 32bit as a word
Pctg-x8 Dec 21, 2024
71591fd
fix: update bedrock
Pctg-x8 Dec 23, 2024
e5a6803
Merge pull request #442 from Pctg-x8/fix-bedrock-updates-20241223
Pctg-x8 Dec 23, 2024
229a388
fix: returns byte length after serialize
Pctg-x8 Dec 23, 2024
b5bdc22
rm: warnings
Pctg-x8 Dec 23, 2024
a6a2d01
fix: flush after write
Pctg-x8 Dec 23, 2024
e0d69b7
Merge branch 'dev' into fix-refactor-shaderbuild
Pctg-x8 Dec 23, 2024
731e2f6
Merge pull request #441 from Pctg-x8/fix-refactor-shaderbuild
Pctg-x8 Dec 23, 2024
ea9fc36
add: optionally enabled extensions
Pctg-x8 Dec 23, 2024
b964f12
fix: generate version const
Pctg-x8 Dec 23, 2024
50fe3ca
fix: structured debug tracing
Pctg-x8 Dec 23, 2024
d78355c
rm: log from base crate
Pctg-x8 Dec 23, 2024
68041df
fix: line width
Pctg-x8 Dec 23, 2024
5b4e6f9
fix: linux cradle version printing
Pctg-x8 Dec 23, 2024
a47e2e3
Merge pull request #443 from Pctg-x8/ft-vk-auto-extensions
Pctg-x8 Dec 23, 2024
c329360
add: linefeed checker
Pctg-x8 Dec 23, 2024
2ceeefa
fix: update workflow
Pctg-x8 Dec 23, 2024
128b94a
fix: shaderbuild linefeed
Pctg-x8 Dec 23, 2024
2a1ab77
fix: add script
Pctg-x8 Dec 23, 2024
35f7a89
fix: degrade base image version
Pctg-x8 Dec 23, 2024
6b16158
rm: cr
Pctg-x8 Dec 23, 2024
36c18f4
fix: escape
Pctg-x8 Dec 23, 2024
12c1b18
rm: cr
Pctg-x8 Dec 23, 2024
19387fb
Merge branch 'dev' into ft-crlf-checker
Pctg-x8 Dec 23, 2024
050307f
rm: cr
Pctg-x8 Dec 23, 2024
4a07a7c
fix: refactor checker code
Pctg-x8 Dec 23, 2024
9315313
Merge pull request #444 from Pctg-x8/ft-crlf-checker
Pctg-x8 Dec 23, 2024
262e0c0
fix: revive removed wrapper objects
Pctg-x8 Dec 25, 2024
d4e4742
rm: cmake extra linking
Pctg-x8 Dec 25, 2024
30057dd
fix: panic safe logger initialization
Pctg-x8 Dec 25, 2024
cfd3f59
rm: cr
Pctg-x8 Dec 25, 2024
24758ff
fix: use java activity
Pctg-x8 Dec 26, 2024
daabb88
Merge branch 'dev' into fix-efficiency-audio
Pctg-x8 Dec 27, 2024
f17702a
fix: lock-free audio for mac
Pctg-x8 Dec 27, 2024
dd91783
Merge pull request #446 from Pctg-x8/fix-refactor-android
Pctg-x8 Dec 28, 2024
9852869
fix: update apkbuild gitignore to Android template
Pctg-x8 Dec 28, 2024
b3260f4
fix: ignore peridot generated native artifacts
Pctg-x8 Dec 28, 2024
ded2ee4
Merge pull request #447 from Pctg-x8/fix-android-gitignore
Pctg-x8 Dec 28, 2024
13218ee
Merge branch 'dev' into fix-efficiency-audio
Pctg-x8 Dec 28, 2024
d44cb97
rm: ignored files
Pctg-x8 Dec 28, 2024
c24f764
fix: compile errors
Pctg-x8 Dec 28, 2024
bf7d698
Merge pull request #378 from Pctg-x8/fix-efficiency-audio
Pctg-x8 Dec 28, 2024
c6263ce
add: semantic shader base asset define
Pctg-x8 Dec 31, 2024
f68a5f3
add: initial shaderbuild2 cli
Pctg-x8 Jan 1, 2025
33c4e48
fix: same interface with shaderbuild
Pctg-x8 Jan 1, 2025
bb22d37
add: builtin semantic shaders
Pctg-x8 Jan 2, 2025
78c88ff
fix: reading shader pack
Pctg-x8 Jan 2, 2025
23fbe01
fix: use semantic-shader for some examples
Pctg-x8 Jan 2, 2025
918e035
fix: rename semantic shaderbuild cli
Pctg-x8 Jan 2, 2025
06e157d
add: doc comments
Pctg-x8 Jan 2, 2025
560e09e
fix: file eol
Pctg-x8 Jan 2, 2025
61b414e
fix: macos baselib updates
Pctg-x8 Jan 2, 2025
2b266df
Merge pull request #449 from Pctg-x8/fix-update-macos-baselib
Pctg-x8 Jan 2, 2025
cb54e39
Merge branch 'dev' into ft-shaderbuild2
Pctg-x8 Jan 3, 2025
e1a5ff6
Merge pull request #448 from Pctg-x8/ft-shaderbuild2
Pctg-x8 Jan 3, 2025
506badd
fix: bedrock updates 20250126
Pctg-x8 Jan 26, 2025
b5e8fc2
fix: line width
Pctg-x8 Jan 26, 2025
46fa105
fix: transparent external memory ops
Pctg-x8 Jan 26, 2025
8383e6a
Merge pull request #450 from Pctg-x8/fix-bedrock-updates-20250126
Pctg-x8 Jan 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

make -C .github/workflows/generator
git add .github/workflows

3 changes: 3 additions & 0 deletions .github/actions/checkbuild-baselayer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM rust:latest

# あとでlatest自動取得とかしたいけど面倒だから一旦これでいいや
RUN curl -o /cargo-json-gha-translator -L https://github.com/Pctg-x8/cargo-json-gha-translator/releases/download/v0.1.3/cargo-json-gha-translator && chmod +x /cargo-json-gha-translator

ADD entrypoint.sh /
RUN chmod +x /entrypoint.sh

Expand Down
6 changes: 5 additions & 1 deletion .github/actions/checkbuild-baselayer/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash -xe

set -o pipefail

export CARGO_TARGET_DIR=$GITHUB_WORKSPACE/.buildcache/target
export CARGO_HOME=$GITHUB_WORKSPACE/.buildcache

cargo check --verbose --features=bedrock/VK_EXT_debug_report
cd base
cargo check --verbose --features=bedrock/VK_EXT_debug_report --message-format=json | /cargo-json-gha-translator
cargo check --verbose --features=bedrock/VK_EXT_debug_report,mt --message-format=json | /cargo-json-gha-translator
3 changes: 3 additions & 0 deletions .github/actions/checkbuild-subdir/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM rust:latest

# あとでlatest自動取得とかしたいけど面倒だから一旦これでいいや
RUN curl -o /cargo-json-gha-translator -L https://github.com/Pctg-x8/cargo-json-gha-translator/releases/download/v0.1.3/cargo-json-gha-translator && chmod +x /cargo-json-gha-translator

ADD tester.sh /
ADD checker.sh /
ADD find-test-code.sh /
Expand Down
6 changes: 4 additions & 2 deletions .github/actions/checkbuild-subdir/checker.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash -xe

cd $INPUT_PATH
set -o pipefail

cd $TARGET_PATH

export CARGO_TARGET_DIR=$GITHUB_WORKSPACE/.buildcache/target
export CARGO_HOME=$GITHUB_WORKSPACE/.buildcache

for c in */Cargo.toml
do (echo checking $c; cd $(dirname $c) && cargo check --verbose); done
do (echo checking $c; cd $(dirname $c) && cargo check --verbose --message-format=json | /cargo-json-gha-translator) || exit $?; done
14 changes: 14 additions & 0 deletions .github/actions/checkbuild-subdir/schema.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
let GithubActions =
https://raw.githubusercontent.com/Pctg-x8/gha-schemas/master/schema.dhall

let Params = { path : Text }

let step =
λ(params : Params) →
GithubActions.Step::{
, name = "Building as Checking"
, uses = Some "./.github/actions/checkbuild-subdir"
, env = Some (toMap { TARGET_PATH = params.path })
}

in { Params, step }
9 changes: 7 additions & 2 deletions .github/actions/checkbuild-subdir/tester.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
#!/bin/bash -xe

cd $INPUT_PATH
set -o pipefail

cd $TARGET_PATH

export CARGO_TARGET_DIR=$GITHUB_WORKSPACE/.buildcache/target
export CARGO_HOME=$GITHUB_WORKSPACE/.buildcache

test_or_check() {
if `/find-test-code.sh`; then echo "test"; else echo "check"; fi
}
run_test() {
if $(find . -name ci-test.sh | grep .); then ./ci-test.sh; else cargo `test_or_check` --verbose --message-format=json | /cargo-json-gha-translator; fi
}

for c in */Cargo.toml; do
(cd $(dirname $c) && cargo `test_or_check` --verbose)
(cd $(dirname $c) && run_test) || exit $?
done
4 changes: 3 additions & 1 deletion .github/actions/codeform-checker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM python:3.7
FROM python:3.13

ADD testutil.py /
ADD codeform_check.py /
ADD vulnerabilities_elliminator.py /
ADD trailing_newline_checker.py /
ADD linefeed_checker.py /
ADD executor.sh /
RUN chmod +x /executor.sh

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/codeform-checker/executor.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash -xe

python /$INPUT_SCRIPT.py
python /$RUN_SCRIPT.py
21 changes: 21 additions & 0 deletions .github/actions/codeform-checker/linefeed_checker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from testutil import target_sources, annotate_error
from io import BufferedIOBase
from typing import Iterator

def chunked_read(stream: BufferedIOBase, buf_size: int) -> Iterator[bytes]:
buf = bytearray(buf_size)
while stream.readinto1(buf):
yield buf

incorrect_line_feeds = []
for fpath in target_sources():
with open(fpath, "rb") as fp:
if any(b'\r' in buf for buf in chunked_read(fp, 64 * 1024)):
incorrect_line_feeds.append(fpath)

if not incorrect_line_feeds:
print("All files are terminated with LF")
else:
for fpath in incorrect_line_feeds:
annotate_error(fpath, 1, 1, f"This file contains CR character")
exit(1)
29 changes: 29 additions & 0 deletions .github/actions/codeform-checker/schema.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
let GithubActions =
https://raw.githubusercontent.com/Pctg-x8/gha-schemas/master/schema.dhall

let Script =
< codeform_check
| vulnerabilities_elliminator
| trailing_newline_checker
>

let scriptAsText =
let handler =
{ codeform_check = "codeform_check"
, vulnerabilities_elliminator = "vulnerabilities_elliminator"
, trailing_newline_checker = "trailing_newline_checker"
}

in λ(s : Script) → merge handler s

let Params = { script : Script }

let step =
λ(params : Params) →
GithubActions.Step::{
, name = "RunScript"
, uses = Some "./.github/actions/codeform-checker"
, env = Some (toMap { RUN_SCRIPT = scriptAsText params.script })
}

in { Script, Params, step }
26 changes: 21 additions & 5 deletions .github/actions/codeform-checker/testutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,29 @@
import re
from typing import Iterable, Tuple

def target_sources():
return (p for p in iglob("**/*.rs", recursive=True) if not p.startswith("extras/") and not "target/" in p)
def file_lines(fp) -> Iterable[Tuple[int, str]]: return enumerate(iter(fp.readline, ""), 1)

def target_sources(first_matcher: str = "**/*.rs"):
return (
p
for p in iglob("**/*.rs", recursive=True)
if not p.startswith("extras/") and not "target/" in p
)


def file_lines(fp) -> Iterable[Tuple[int, str]]:
return enumerate(iter(fp.readline, ""), 1)


pat_comment_line = re.compile(r"^\s*//")
def not_comment_line(x: str) -> bool: return not pat_comment_line.match(x)
def available_lines(fp) -> Iterable[Tuple[int, str]]: return filter(lambda x: not_comment_line(x[1]), file_lines(fp))


def not_comment_line(x: str) -> bool:
return not pat_comment_line.match(x)


def available_lines(fp) -> Iterable[Tuple[int, str]]:
return filter(lambda x: not_comment_line(x[1]), file_lines(fp))


def annotate_error(file: str, line: int, col: int, msg: str):
print(f"::error file={file},line={line},col={col}::{msg}")
14 changes: 14 additions & 0 deletions .github/actions/codeform-checker/trailing_newline_checker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from testutil import target_sources, annotate_error

has_error = False
for fpath in target_sources("**/*.{{rs,toml,sh,ps1}}"):
with open(fpath, encoding="utf-8") as fp:
file_size = fp.seek(0, 2)
fp.seek(file_size - 1, 0)
if fp.read(1) != "\n":
has_error = True
fp.seek(0, 0)
lines = fp.readlines()
annotate_error(fpath, len(lines), 1 + len(lines[-1]), "Source file requires a newline at end of the file")

if has_error: exit(1)
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def find_unwrap_position_in_line(line: str) -> Optional[int]:
for fpath in target_sources():
with open(fpath, encoding="utf-8") as fp:
unwraps = ((i, find_unwrap_position_in_line(line)) for i, line in available_lines(fp))
found_unwrap_vulnerabilities.extend((fpath, i, p.start()) for i, p in unwraps if p is not None)
found_unwrap_vulnerabilities.extend((fpath, i, p) for i, p in unwraps if p is not None)

if not found_unwrap_vulnerabilities:
print("No unwraps found")
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/create-dev-delivery-prs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:latest

RUN apk --update add curl git
RUN apk --update add curl git jq
ADD runner.sh /
RUN chmod +x /runner.sh

Expand Down
9 changes: 6 additions & 3 deletions .github/actions/create-dev-delivery-prs/runner.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh -e

PR_URL="https://api.github.com/repos/$GITHUB_REPOSITORY/pulls"
API_URL_REPO_BASE="https://api.github.com/repos/$GITHUB_REPOSITORY"
PR_URL="$API_URL_REPO_BASE/pulls"
LABEL_NAME="Changelog Auto Delivery"

HEAD_NAME=$(echo $GITHUB_REF | sed "s/refs\/heads\///")
TARGETS=$(git branch -a | sed -n "s/\s*remotes\/origin\/\(dev-.\+\)/\1/p")
Expand All @@ -9,7 +11,8 @@ for DEST in $TARGETS; do
if [ $(echo $CHANGELOG_LIST | wc -l) == "0" ]; then
echo "No diffs between $HEAD_NAME and $DEST. skipping"
else
POST_DATA="{\"title\": \"🚚[CHANGELOG-AUTO-DELIVERY]$HEAD_NAME → $DEST🚚\", \"base\": \"$DEST\", \"head\": \"$HEAD_NAME\"}"
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $INPUT_TOKEN" -d "$POST_DATA" $PR_URL
POST_DATA="{\"title\": \"🚚$HEAD_NAME → $DEST🚚\", \"base\": \"$DEST\", \"head\": \"$HEAD_NAME\", \"maintainer_can_modify\": false}"
PR_NUMBER=$(curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $GITHUB_TOKEN" -d "$POST_DATA" $PR_URL | jq .number)
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $GITHUB_TOKEN" -d "{ \"labels\": [\"$LABEL_NAME\"] }" "$API_URL_REPO_BASE/issues/$PR_NUMBER/labels"
fi
done
17 changes: 17 additions & 0 deletions .github/actions/create-dev-delivery-prs/schema.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
let GithubActions =
https://raw.githubusercontent.com/Pctg-x8/gha-schemas/master/schema.dhall

let Params =
{ Type = { token : Text }
, default.token = GithubActions.mkExpression "secrets.GITHUB_TOKEN"
}

let step =
λ(params : Params.Type) →
GithubActions.Step::{
, name = "Create PullRequest"
, uses = Some "./.github/actions/create-dev-delivery-prs"
, env = Some (toMap { GITHUB_TOKEN = params.token })
}

in { Params, step }
2 changes: 1 addition & 1 deletion .github/actions/deployment-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:13
FROM node:18

# Install tools
RUN npm install -g firebase-tools
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/deployment-dev/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Copy generated docs for deployment
rsync --delete -auv $GITHUB_WORKSPACE/target/doc/ /doc/public/dev
cd /doc
firebase deploy --token $FIREBASE_TOKEN --project docs-peridot
firebase deploy --project docs-peridot
14 changes: 14 additions & 0 deletions .github/actions/deployment-dev/schema.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
let GithubActions =
https://raw.githubusercontent.com/Pctg-x8/gha-schemas/master/schema.dhall

let Params = { FirebaseToken : Text }

let step =
λ(params : Params) →
GithubActions.Step::{
, name = "Deployment to Firebase Hosting (for Dev)"
, uses = Some "./.github/actions/deployment-dev"
, env = Some (toMap { FIREBASE_TOKEN = params.FirebaseToken })
}

in { Params, step }
7 changes: 0 additions & 7 deletions .github/actions/integrity-check-slack-notifier/Dockerfile

This file was deleted.

26 changes: 0 additions & 26 deletions .github/actions/integrity-check-slack-notifier/entrypoint.sh

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.yml linguist-generated=true
37 changes: 18 additions & 19 deletions .github/workflows/auto-delivery-dev.yml

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

Loading
Loading