summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-08 09:57:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-08 09:57:26 (GMT)
commitdd6443e8182818827764517e94c2b348bf99b23e (patch)
treec9f18b5ef02fc8959d1c1c76aeaaabd1512b3d0f /.github
parent4c84bfbd391a4772dda529cd3d9f43f762fb7304 (diff)
downloadtcl-dd6443e8182818827764517e94c2b348bf99b23e.zip
tcl-dd6443e8182818827764517e94c2b348bf99b23e.tar.gz
tcl-dd6443e8182818827764517e94c2b348bf99b23e.tar.bz2
Backout [b88bac358d]: "Experimental: update automatic build instructions". Build is already broken for 2 weeks now, no visible activity for fixing this.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/onefiledist.yml45
1 files changed, 8 insertions, 37 deletions
diff --git a/.github/workflows/onefiledist.yml b/.github/workflows/onefiledist.yml
index 2b56934..8fec3e1 100644
--- a/.github/workflows/onefiledist.yml
+++ b/.github/workflows/onefiledist.yml
@@ -26,11 +26,8 @@ jobs:
echo "VER_PATH=$(cd tools; pwd)/addVerToFile.tcl" >> $GITHUB_ENV
working-directory: .
- name: Configure
- run: |
- ./configure --disable-symbols --disable-shared --enable-zipfs
- sed -n '/^PATCH_LEVEL/{s/.*= /patchlevel=/;p}' < Makefile >> $GITHUB_OUTPUT
+ run: ./configure --disable-symbols --disable-shared --enable-zipfs
working-directory: unix
- id: cfg
- name: Build
run: |
make tclsh
@@ -43,12 +40,10 @@ jobs:
chmod +x tclsh${TCL_PATCHLEVEL}_snapshot
tar -cf tclsh${TCL_PATCHLEVEL}_snapshot.tar tclsh${TCL_PATCHLEVEL}_snapshot
working-directory: 1dist
- env:
- TCL_PATCHLEVEL: ${{ steps.cfg.outputs.patchlevel }}
- name: Upload
uses: actions/upload-artifact@v3
with:
- name: Tclsh ${{ steps.cfg.outputs.patchlevel }} Linux single-file build (snapshot)
+ name: Tclsh ${{ env.TCL_PATCHLEVEL }} Linux single-file build (snapshot)
path: 1dist/*.tar
macos:
name: macOS
@@ -77,11 +72,8 @@ jobs:
echo "CREATE_DMG=$(cd create-dmg;pwd)/create-dmg" >> $GITHUB_ENV
echo "CFLAGS=-arch x86_64 -arch arm64" >> $GITHUB_ENV
- name: Configure
- run: |
- ./configure --disable-symbols --disable-shared --enable-zipfs
- sed -n '/^PATCH_LEVEL/{s/.*= /patchlevel=/;p}' < Makefile >> $GITHUB_OUTPUT
+ run: ./configure --disable-symbols --disable-shared --enable-zipfs
working-directory: unix
- id: cfg
- name: Build
run: |
make tclsh
@@ -111,12 +103,10 @@ jobs:
"Tcl-$TCL_PATCHLEVEL-(snapshot).dmg" \
"contents/"
working-directory: 1dist
- env:
- TCL_PATCHLEVEL: ${{ steps.cfg.outputs.patchlevel }}
- name: Upload
uses: actions/upload-artifact@v3
with:
- name: Tclsh ${{ steps.cfg.outputs.patchlevel }} macOS single-file build (snapshot)
+ name: Tclsh ${{ env.TCL_PATCHLEVEL }} macOS single-file build (snapshot)
path: 1dist/*.dmg
win:
name: Windows
@@ -143,11 +133,8 @@ jobs:
mkdir 1dist
working-directory: .
- name: Configure
- run: |
- ./configure $CFGOPT
- sed -n '/^PATCH_LEVEL/{s/.*= /patchlevel=/;p}' < Makefile >> $GITHUB_OUTPUT
+ run: ./configure $CFGOPT
working-directory: win
- id: cfg
- name: Build
run: |
make binaries libraries
@@ -156,29 +143,13 @@ jobs:
- name: Get Exact Version
run: |
./tclsh*.exe $VER_PATH $GITHUB_ENV
- echo "target=tclsh${TCL_PATCHLEVEL}_snapshot.exe" >> $GITHUB_OUTPUT
working-directory: win
- id: exe
- env:
- TCL_PATCHLEVEL: ${{ steps.cfg.outputs.patchlevel }}
- name: Set Executable Name
run: |
- cp ../win/tclsh*.exe "$TARGET_EXE"
+ cp ../win/tclsh*.exe tclsh${TCL_PATCHLEVEL}_snapshot.exe
working-directory: 1dist
- env:
- TARGET_EXE: ${{ steps.exe.outputs.target }}
- - name: Sign
- if: ${{ env.HAVE_CAPABILITY }}
- uses: dlemstra/code-sign-action@v1
- with:
- certificate: '${{ secrets.Windows_Certificate_base64 }}'
- password: '${{ secrets.Windows_Certificate_password }}'
- folder: 1dist
- files: ${{ steps.exe.outputs.target }}
- env:
- HAVE_CAPABILITY: ${{ secrets.Windows_Certificate_base64 != '' && secrets.Windows_Certificate_password != '' }}
- name: Upload
uses: actions/upload-artifact@v3
with:
- name: Tclsh ${{ steps.cfg.outputs.patchlevel }} Windows single-file build (snapshot)
- path: 1dist/${{ steps.exe.outputs.target }}
+ name: Tclsh ${{ env.TCL_PATCHLEVEL }} Windows single-file build (snapshot)
+ path: '1dist/*_snapshot.exe'