summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2020-11-25 00:41:24 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2020-11-25 00:41:24 (GMT)
commitfc553a3ea1d03db6f403d77152f27239bc8cd422 (patch)
tree64d865fff4620309060e80d730686f48d7715c0f /.github
parentaca216973f4109eff4ca90dd967295a28819e491 (diff)
downloadtcl-fc553a3ea1d03db6f403d77152f27239bc8cd422.zip
tcl-fc553a3ea1d03db6f403d77152f27239bc8cd422.tar.gz
tcl-fc553a3ea1d03db6f403d77152f27239bc8cd422.tar.bz2
Experimental branch: building single file distributions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/onefiledist.yml102
1 files changed, 102 insertions, 0 deletions
diff --git a/.github/workflows/onefiledist.yml b/.github/workflows/onefiledist.yml
new file mode 100644
index 0000000..1c0b72f
--- /dev/null
+++ b/.github/workflows/onefiledist.yml
@@ -0,0 +1,102 @@
+name: Build
+on: [push]
+jobs:
+ linux:
+ name: Linux
+ runs-on: ubuntu-20.04
+ defaults:
+ run:
+ shell: bash
+ working-directory: unix
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Prepare
+ run: |
+ touch generic/tclStubInit.c generic/tclOOStubInit.c
+ mkdir 1dist
+ working-directory: .
+ - name: Configure
+ run: ./configure --disable-symbols --disable-shared --enable-zipfs
+ - name: Build
+ run: |
+ make tclsh tclzipfile
+ sed -n '/^VERSION /{s/.*= /TCL_VER=/;p;q;}' < Makefile >> $GITHUB_ENV
+ echo "TCL_ZIP=`pwd`/`echo libtcl*.zip`" >> $GITHUB_ENV
+ - name: Package
+ run: |
+ cat ../unix/tclsh $TCL_ZIP > tclsh${TCL_VER}_unofficial
+ chmod +x tclsh${TCL_VER}_unofficial
+ tar -cf tclsh${TCL_VER}_unofficial.tar tclsh${TCL_VER}_unofficial
+ working-directory: 1dist
+ - name: Upload
+ uses: actions/upload-artifact@v2
+ with:
+ name: Tclsh ${{ env.TCL_VER }} Linux single-file build (unofficial)
+ path: 1dist/*.tar
+ macos:
+ name: macOS
+ runs-on: macos-latest
+ defaults:
+ run:
+ shell: bash
+ working-directory: unix
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Prepare
+ run: |
+ touch generic/tclStubInit.c generic/tclOOStubInit.c
+ mkdir 1dist
+ working-directory: .
+ - name: Configure
+ run: ./configure --disable-symbols --disable-shared --enable-zipfs
+ - name: Build
+ run: |
+ make tclsh tclzipfile
+ sed -n '/^VERSION /{s/.*= /TCL_VER=/;p;q;}' < Makefile >> $GITHUB_ENV
+ echo "TCL_ZIP=`pwd`/`echo libtcl*.zip`" >> $GITHUB_ENV
+ - name: Package
+ run: |
+ cat ../unix/tclsh $TCL_ZIP > tclsh${TCL_VER}_unofficial
+ chmod +x tclsh${TCL_VER}_unofficial
+ tar -cf tclsh${TCL_VER}_unofficial.tar tclsh${TCL_VER}_unofficial
+ working-directory: 1dist
+ - name: Upload
+ uses: actions/upload-artifact@v2
+ with:
+ name: Tclsh ${{ env.TCL_VER }} macOS single-file build (unofficial)
+ path: 1dist/*.tar
+ win:
+ name: Windows
+ runs-on: windows-latest
+ defaults:
+ run:
+ shell: bash
+ working-directory: win
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Install MSYS2 and Make
+ run: choco install msys2 make
+ - name: Prepare
+ run: |
+ touch generic/tclStubInit.c generic/tclOOStubInit.c
+ mkdir 1dist
+ working-directory: .
+ - name: Configure
+ run: ./configure --disable-symbols --disable-shared --enable-zipfs
+ - name: Build
+ run: |
+ make tclsh tclzipfile
+ sed -n '/^VERSION /{s/.*= /TCL_VER=/;p;q;}' < Makefile >> $GITHUB_ENV
+ echo "TCL_ZIP=`pwd`/`echo libtcl*.zip`" >> $GITHUB_ENV
+ - name: Package
+ run: |
+ cat ../win/tclsh*.exe $TCL_ZIP > tclsh${TCL_VER}_unofficial.exe
+ working-directory: 1dist
+ - name: Upload
+ uses: actions/upload-artifact@v2
+ with:
+ name: Tclsh ${{ env.TCL_VER }} Windows single-file build (unofficial)
+ path: '1dist/*_unofficial.exe'