-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from nomennescio/main
Add Factor Build Info to summary
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
W=/workspace/ | ||
# Create a container | ||
C=$(docker container create --rm -w $W ghcr.io/codewars/factor:latest factor -run=postbuild) | ||
|
||
# Copy files from the current directory | ||
docker container cp info/. $C:$W | ||
|
||
# Run tests | ||
docker container start --attach $C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
! copyright 2024 nomennescio | ||
USING: accessors assocs compiler.errors io kernel namespaces prettyprint sequences sequences.extras sets source-files.errors tools.errors ; | ||
IN: postbuild | ||
|
||
: report-missing-libraries ( -- ) | ||
linkage-errors get values [ error>> no-such-library? ] [ error>> name>> ] filter-map members | ||
[ "## Missing libraries" print | ||
[ print ] each | ||
] unless-empty | ||
; | ||
|
||
: run ( -- ) | ||
report-missing-libraries | ||
; | ||
|
||
MAIN: run |