Skip to content

Commit

Permalink
Update to Ubuntu 24.04 and GCC 14.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekKnapek committed May 17, 2024
1 parent 440c7ed commit 3ea6fb2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_run_lnx_c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ 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
gcc-14 -v
gcc-14 -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."
4 changes: 2 additions & 2 deletions .github/workflows/build_run_lnx_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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
g++-14 -v
g++-14 -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."
10 changes: 5 additions & 5 deletions .github/workflows/workflow1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"matrix":
"proj": ["mkcc", "mkcfct", "mkcflt", "mkch", "mkci", "mkct", "mkvc"]
"cver": ["89", "99", "11", "18", "2x"]
"runs-on": "ubuntu-latest"
"runs-on": "ubuntu-24.04"
"steps":
- "uses": "actions/checkout@main"
- "run": "bash ./.github/workflows/build_run_lnx_c.sh ${{matrix.proj}} ${{matrix.cver}}"
Expand All @@ -22,7 +22,7 @@
"matrix":
"proj": ["mkcc", "mkcfct", "mkcflt", "mkch", "mkci", "mkct", "mkvc"]
"cver": ["98", "11", "14", "17", "20"]
"runs-on": "ubuntu-latest"
"runs-on": "ubuntu-24.04"
"steps":
- "uses": "actions/checkout@main"
- "run": "bash ./.github/workflows/build_run_lnx_cpp.sh ${{matrix.proj}} ${{matrix.cver}}"
Expand All @@ -38,7 +38,7 @@
"strategy":
"matrix":
"proj": ["mkch", "mkcc", "float_analyzer", "double_analyzer", "quad_analyzer"]
"runs-on": "ubuntu-latest"
"runs-on": "ubuntu-24.04"
"defaults":
"run":
"working-directory": "./mk_clib/projects/emscripten"
Expand All @@ -52,7 +52,7 @@
"name": "${{matrix.proj}}.wasm"
"path": "./mk_clib/projects/emscripten/${{matrix.proj}}.wasm"
"build_run_examples":
"runs-on": "ubuntu-latest"
"runs-on": "ubuntu-24.04"
"defaults":
"run":
"working-directory": "./mk_clib/projects/gcc"
Expand Down Expand Up @@ -83,7 +83,7 @@
"name": "${{matrix.proj}}-${{matrix.conf}}-${{matrix.plat}}.txt"
"path": "${{matrix.proj}}-${{matrix.conf}}-${{matrix.plat}}.txt"
"mk_clib":
"runs-on": "ubuntu-latest"
"runs-on": "ubuntu-24.04"
"needs": ["build_run_c", "build_run_cpp", "build_wasm", "build_run_win"]
"steps":
- "uses": "actions/download-artifact@main"
Expand Down

0 comments on commit 3ea6fb2

Please sign in to comment.