Skip to content

Commit

Permalink
test gcc version
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekKnapek committed May 17, 2024
1 parent 440c7ed commit a3fabca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 76 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build_run_lnx_c.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
set -x
set -e
this_dir="$(dirname -- ${0})"
bash "${this_dir}/../../mk_clib/projects/gcc/build_m4.sh"
gcc-13 -v
gcc-13 -std=c${2} -DNDEBUG -Dmk_lang_assert_want=1 -Dmk_lang_crash_detail_want=1 -Dmk_clib_test_smol_want=1 -D_POSIX_C_SOURCE=200809l -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -O3 -Wall -Wextra -Wpedantic -o ${this_dir}/../../mk_clib/app/${1}-c${2}.elf ${this_dir}/../../mk_clib/app/${1}.c 2>&1 | tee ${this_dir}/../../mk_clib/app/${1}-c${2}.txt
${this_dir}/../../mk_clib/app/${1}-c${2}.elf
echo "Gud."
gcc -v
10 changes: 1 addition & 9 deletions .github/workflows/build_run_lnx_cpp.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
set -x
set -e
this_dir="$(dirname -- ${0})"
cp "${this_dir}/../../mk_clib/app/${1}.c" "${this_dir}/../../mk_clib/app/${1}.cpp"
bash "${this_dir}/../../mk_clib/projects/gcc/build_m4.sh"
g++-13 -v
g++-13 -std=c++${2} -DNDEBUG -Dmk_lang_assert_want=1 -Dmk_lang_crash_detail_want=1 -Dmk_clib_test_smol_want=1 -D_POSIX_C_SOURCE=200809l -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -O3 -fconstexpr-ops-limit=1000000000 -Wall -Wextra -Wpedantic -o ${this_dir}/../../mk_clib/app/${1}-cpp${2}.elf ${this_dir}/../../mk_clib/app/${1}.cpp 2>&1 | tee ${this_dir}/../../mk_clib/app/${1}-cpp${2}.txt
${this_dir}/../../mk_clib/app/${1}-cpp${2}.elf
echo "Gud."
g++ -v
59 changes: 0 additions & 59 deletions .github/workflows/workflow1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,62 +34,3 @@
"with":
"name": "${{matrix.proj}}-cpp${{matrix.cver}}.txt"
"path": "./mk_clib/app/${{matrix.proj}}-cpp${{matrix.cver}}.txt"
"build_wasm":
"strategy":
"matrix":
"proj": ["mkch", "mkcc", "float_analyzer", "double_analyzer", "quad_analyzer"]
"runs-on": "ubuntu-latest"
"defaults":
"run":
"working-directory": "./mk_clib/projects/emscripten"
"steps":
- "uses": mymindstorm/setup-emsdk@v13
- "uses": "actions/checkout@main"
- "run": "bash ./../gcc/build_m4.sh"
- "run": "bash ./${{matrix.proj}}.sh"
- "uses": "actions/upload-artifact@main"
"with":
"name": "${{matrix.proj}}.wasm"
"path": "./mk_clib/projects/emscripten/${{matrix.proj}}.wasm"
"build_run_examples":
"runs-on": "ubuntu-latest"
"defaults":
"run":
"working-directory": "./mk_clib/projects/gcc"
"steps":
- "uses": "actions/checkout@main"
- "run": "bash ./build_m4.sh"
- "run": "bash ./build_run_examples.sh"
"build_run_win":
"strategy":
"matrix":
"proj": ["mkcc", "mkcfct", "mkcflt", "mkch", "mkci", "mkct", "mkvc"]
"conf": ["debug", "release"]
"plat": ["x86", "x64", "arm32", "arm64", "arm64ec"]
"runs-on": "windows-latest"
"steps":
- "uses": "actions/checkout@main"
- "run": "cmd.exe /c .github\\workflows\\build_run_win.bat ${{matrix.conf}} ${{matrix.plat}} ${{matrix.proj}}"
- "uses": "actions/upload-artifact@main"
"with":
"name": "${{matrix.proj}}-${{matrix.conf}}-${{matrix.plat}}.exe"
"path": "${{matrix.proj}}-${{matrix.conf}}-${{matrix.plat}}.exe"
- "uses": "actions/upload-artifact@main"
"with":
"name": "${{matrix.proj}}-${{matrix.conf}}-${{matrix.plat}}.pdb"
"path": "${{matrix.proj}}-${{matrix.conf}}-${{matrix.plat}}.pdb"
- "uses": "actions/upload-artifact@main"
"with":
"name": "${{matrix.proj}}-${{matrix.conf}}-${{matrix.plat}}.txt"
"path": "${{matrix.proj}}-${{matrix.conf}}-${{matrix.plat}}.txt"
"mk_clib":
"runs-on": "ubuntu-latest"
"needs": ["build_run_c", "build_run_cpp", "build_wasm", "build_run_win"]
"steps":
- "uses": "actions/download-artifact@main"
"with":
"merge-multiple": "true"
- "uses": "actions/upload-artifact@main"
"with":
"name": "mk_clib"
"path": "/home/runner/work/mk_clib/mk_clib/*"

0 comments on commit a3fabca

Please sign in to comment.