-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
199 additions
and
146 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,154 @@ | ||
--- | ||
jobs: | ||
etc: | ||
name: 'Other Platforms/v${{matrix.perl}}' | ||
needs: | ||
- setup | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- architecture: x86-64 | ||
host: ubuntu-20.04 | ||
name: freebsd | ||
pkg: pkg install -y | ||
version: 13.2 | ||
- architecture: arm64 | ||
host: ubuntu-20.04 | ||
name: freebsd | ||
pkg: pkg install -y | ||
version: 13.2 | ||
perl: | ||
- 5.38 | ||
max-parallel: 25 | ||
uses: sanko/actions/.github/workflows/affix-cross.yml@main | ||
with: | ||
arch: '${{ matrix.os.architecture }}' | ||
host: '${{ matrix.os.host }}' | ||
os: '${{ matrix.os.name }}' | ||
perl: '${{ matrix.perl }}' | ||
pkg: '${{ matrix.os.pkg }}' | ||
version: '${{ matrix.os.version }}' | ||
linux: | ||
name: 'Linux/v${{matrix.perl}}' | ||
needs: | ||
- setup | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
flags: | ||
- '' | ||
- -Dusethreads | ||
- -Duselongdouble | ||
- -Dusequadmath | ||
os: | ||
- ubuntu-22.04 | ||
perl: '${{ fromJSON(needs.setup.outputs.matrix).perl }}' | ||
max-parallel: 25 | ||
uses: sanko/actions/.github/workflows/affix-unix.yml@main | ||
with: | ||
flags: '${{ matrix.flags }}' | ||
os: '${{ matrix.os }}' | ||
perl: '${{ matrix.perl }}' | ||
macos: | ||
name: "[${{ matrix.os == 'macos-14' && 'M1' || 'Intel' }}] macOS/v${{matrix.perl}}" | ||
needs: | ||
- setup | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
exclude: | ||
- flags: -Dusequadmath | ||
- flags: -Dusethreads | ||
flags: '${{ fromJSON(needs.setup.outputs.matrix).flags }}' | ||
os: | ||
- macos-14 | ||
- macos-latest | ||
perl: '${{ fromJSON(needs.setup.outputs.matrix).perl }}' | ||
max-parallel: 25 | ||
uses: sanko/actions/.github/workflows/affix-unix.yml@main | ||
with: | ||
flags: '${{ matrix.flags }}' | ||
os: '${{ matrix.os }}' | ||
perl: '${{ matrix.perl }}' | ||
results: | ||
name: Results | ||
needs: | ||
- macos | ||
- win32 | ||
- linux | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Download test results | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: artifacts | ||
- name: Report test results | ||
run: | | ||
# Function to process a directory | ||
process_dir() { | ||
local dir="$1" | ||
# Loop through each element in the directory | ||
for file in "$dir"/*; do | ||
# Check if it's a directory | ||
if [ -d "$file" ]; then | ||
# Recursively call process_dir for subdirectories (except .) | ||
if [ "$file" != "." ]; then | ||
process_dir "$file" | ||
fi | ||
# If it's a regular file, print its content | ||
elif [ -f "$file" ]; then | ||
echo "================> $file <================" | ||
cat "$file" | ||
echo "" # Add an empty line between files | ||
fi | ||
done | ||
} | ||
# Get the directory path from the first argument (or current directory) | ||
dir=${1:-.} | ||
# Process the specified directory | ||
process_dir "artifacts" | ||
setup: | ||
name: Generate Testing Matrix | ||
outputs: | ||
matrix: '${{ steps.matrix.outputs.matrix }}' | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- env: | ||
DATA: | | ||
{ | ||
"perl": ["5.38.2", "5.40.0"], | ||
"flags": ["", "-Dusethreads", "-Duselongdouble", "-Dusequadmath"] | ||
} | ||
id: matrix | ||
run: "jq -rn 'env.DATA | fromjson | @json \"matrix=\\(.)\"' > $GITHUB_OUTPUT\n" | ||
win32: | ||
name: 'Windows/v${{matrix.perl}}' | ||
needs: | ||
- setup | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
exclude: | ||
- perl: 5.40.0 | ||
- flags: -Duselongdouble | ||
- flags: -Dusequadmath | ||
flags: | ||
- -Dusethreads | ||
- '' | ||
os: | ||
- windows-2022 | ||
perl: '${{ fromJSON(needs.setup.outputs.matrix).perl }}' | ||
max-parallel: 25 | ||
uses: sanko/actions/.github/workflows/affix-win32.yml@main | ||
with: | ||
flags: '${{ matrix.flags }}' | ||
os: '${{ matrix.os }}' | ||
perl: '${{ matrix.perl }}' | ||
name: CI Matrix | ||
on: | ||
pull_request: ~ | ||
push: ~ | ||
schedule: | ||
- cron: 42 5 * * 0 | ||
workflow_dispatch: ~ |
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,28 @@ | ||
--- | ||
jobs: | ||
clear-cache: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Clear cache [https://stackoverflow.com/a/73556714]' | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
console.log("About to clear") | ||
const caches = await github.rest.actions.getActionsCacheList({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
}) | ||
for (const cache of caches.data.actions_caches) { | ||
console.log(cache) | ||
github.rest.actions.deleteActionsCacheById({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
cache_id: cache.id, | ||
}) | ||
} | ||
console.log("Clear completed") | ||
name: Clear cache | ||
on: | ||
workflow_dispatch: ~ | ||
permissions: | ||
actions: write |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -39,3 +39,4 @@ share/share | |
share/bin | ||
*.session | ||
xmake.* | ||
.xmake/* |
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
Oops, something went wrong.