Cleanup tabs #208
Workflow file for this run
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
name: Memory leak checker | |
on: [push] | |
permissions: | |
contents: read | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout Tcl | |
uses: actions/checkout@v4 | |
with: | |
repository: tcltk/tcl | |
ref: core-8-6-14 | |
path: tcl | |
- name: Configure Tcl | |
working-directory: tcl/unix | |
run: | | |
./configure --enable-symbols=all --prefix=$HOME/tcl_install || { | |
cat config.log | |
echo "::error::Failure during Configure Tcl" | |
exit 1 | |
} | |
- name: Build Tcl | |
working-directory: tcl/unix | |
run: | | |
make -j || { | |
echo "::error::Failure during Build Tcl" | |
exit 1 | |
} | |
- name: Install Tcl | |
working-directory: tcl/unix | |
run: | | |
make install || { | |
echo "::error::Failure during Install Tcl" | |
exit 1 | |
} | |
- name: Checkout tclvfs | |
uses: actions/checkout@v4 | |
with: | |
repository: chpock/tclvfs | |
ref: main | |
path: tclvfs | |
- name: Setup environment for tclvfs | |
working-directory: tclvfs | |
run: | | |
curl https://core.tcl-lang.org/tclconfig/tarball/main/tclconfig.tar.gz >tclconfig.tar.gz | |
tar xfz tclconfig.tar.gz | |
- name: Configure tclvfs | |
working-directory: tclvfs | |
run: | | |
./configure --enable-symbols=all --with-tcl=$HOME/tcl_install/lib --prefix=$HOME/tcl_install --exec-prefix=$HOME/tcl_install || { | |
cat config.log | |
echo "::error::Failure during Configure tclvfs" | |
exit 1 | |
} | |
- name: Build tclvfs | |
working-directory: tclvfs | |
run: | | |
make -j || { | |
echo "::error::Failure during Build tclvfs" | |
exit 1 | |
} | |
- name: Install tclvfs | |
working-directory: tclvfs | |
run: | | |
make install || { | |
echo "::error::Failure during Install tclvfs" | |
exit 1 | |
} | |
- name: Checkout tclthread | |
uses: actions/checkout@v4 | |
with: | |
repository: tcltk/thread | |
ref: thread-2-8-9 | |
path: tclthread | |
- name: Setup environment for tclthread | |
working-directory: tclthread | |
run: | | |
curl https://core.tcl-lang.org/tclconfig/tarball/main/tclconfig.tar.gz >tclconfig.tar.gz | |
tar xfz tclconfig.tar.gz | |
- name: Configure tclthread | |
working-directory: tclthread | |
# Threads should not be built with --enable-symbols=all, because tsv has a bug | |
# that leads to Tcl_Panic when memory debugging is enabled. | |
# See: https://core.tcl-lang.org/thread/tktview/c6057948e5 | |
run: | | |
./configure --disable-symbols --with-tcl=$HOME/tcl_install/lib --prefix=$HOME/tcl_install --exec-prefix=$HOME/tcl_install || { | |
cat config.log | |
echo "::error::Failure during Configure tclthread" | |
exit 1 | |
} | |
- name: Build tclthread | |
working-directory: tclthread | |
run: | | |
make -j || { | |
echo "::error::Failure during Build tclthread" | |
exit 1 | |
} | |
- name: Install tclthread | |
working-directory: tclthread | |
run: | | |
make install || { | |
echo "::error::Failure during Install tclthread" | |
exit 1 | |
} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Configure | |
run: | | |
./configure --enable-symbols=all --with-tcl=$HOME/tcl_install/lib || { | |
cat config.log | |
echo "::error::Failure during Configure" | |
exit 1 | |
} | |
- name: Build | |
run: | | |
make -j || { | |
echo "::error::Failure during Build" | |
exit 1 | |
} | |
- name: Run Tests | |
run: | | |
MEMDEBUG=1 make test || { | |
echo "::error::Failure during Test" | |
exit 1 | |
} |