mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 11:54:27 +02:00
heed github warning, and use output file instead of set-output command; also, fix freestanding
This commit is contained in:
9
.github/generate-job-matrix.py
vendored
9
.github/generate-job-matrix.py
vendored
@@ -1,5 +1,6 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
import random
|
import random
|
||||||
import typing
|
import typing
|
||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
@@ -157,8 +158,14 @@ def main():
|
|||||||
|
|
||||||
json_data = [e.as_json() for e in data]
|
json_data = [e.as_json() for e in data]
|
||||||
|
|
||||||
|
output_file = os.environ.get("GITHUB_OUTPUT")
|
||||||
if not args.suppress_output:
|
if not args.suppress_output:
|
||||||
print(f"::set-output name=matrix::{json.dumps(json_data)}")
|
if output_file:
|
||||||
|
print(f"Writing outputs to {output_file}")
|
||||||
|
with open(output_file, "wt") as fh:
|
||||||
|
fh.write(f"matrix={json.dumps(json_data)}")
|
||||||
|
else:
|
||||||
|
print("No output file received!")
|
||||||
|
|
||||||
for dbg in args.debug:
|
for dbg in args.debug:
|
||||||
match dbg:
|
match dbg:
|
||||||
|
4
.github/workflows/ci-freestanding.yml
vendored
4
.github/workflows/ci-freestanding.yml
vendored
@@ -60,10 +60,6 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include: ${{fromJson(needs.generate-matrix.outputs.matrix)}}
|
include: ${{fromJson(needs.generate-matrix.outputs.matrix)}}
|
||||||
# TODO For some reason Clang-18 Debug with -ffreestanding does not pass CMakeTestCXXCompiler
|
|
||||||
exclude:
|
|
||||||
- build_type: "Debug"
|
|
||||||
config: { name: "Clang-18" }
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.config.compiler.cc }}
|
CC: ${{ matrix.config.compiler.cc }}
|
||||||
|
Reference in New Issue
Block a user