forked from sebres/tclclockmod
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from flightaware/merge-upstream
Merge upstream
- Loading branch information
Showing
21 changed files
with
3,833 additions
and
1,792 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: CI-nix | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'doc/**' | ||
pull_request: | ||
paths-ignore: | ||
- 'doc/**' | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
compiler: [gcc, clang] | ||
|
||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
# with: | ||
# submodules: recursive | ||
- name: Install dependencies | ||
if: matrix.os != 'macos-latest' | ||
run: | | ||
sudo apt-get install tcl tcl-dev | ||
# - name: Install dependencies MacOS | ||
# if: matrix.os == 'macos-latest' | ||
# run: | | ||
# sudo brew install tcl-devel | ||
|
||
- name: Pre-requirements | ||
run: | | ||
test -f ../tclconfig/tcl.m4 && echo "use ../tclconfig" || { | ||
test -f tclconfig/tcl.m4 && echo "use ./tclconfig" || \ | ||
echo 'checkout tclconfig module ...' && \ | ||
git submodule update --init --recursive tclconfig && echo "tclconfig module is up-to-date" || { | ||
echo 'checkout modules failed, clone ...' && \ | ||
git clone https://github.com/tcltk/tclconfig.git ../tclconfig | ||
} | ||
} | ||
- name: Software versions tcl/${{ matrix.compiler }} | ||
run: | | ||
echo "${{ matrix.COMPILER }}: $(${{ matrix.COMPILER }} --version)" | ||
echo "TCL: $(echo puts [info patchlevel] | tclsh)" | ||
- name: Configure ${{ matrix.compiler }} | ||
env: | ||
CC: ${{ matrix.compiler }} | ||
run: | | ||
test -f configure && echo "configure already exists in $(pwd) ..." || autoreconf -f | ||
mkdir ./unix/build-${{ matrix.compiler }}; cd "$_" | ||
../../configure --with-tcl=/usr/lib/tcl8.6 | ||
- name: Build ${{ matrix.compiler }} | ||
working-directory: ./unix/build-${{ matrix.compiler }} | ||
env: | ||
CC: ${{ matrix.compiler }} | ||
run: | | ||
make -j4 | ||
- name: Test ${{ matrix.compiler }} | ||
working-directory: ./unix/build-${{ matrix.compiler }} | ||
run: | | ||
echo $TZ; timedatectl status | ||
# tclsh ../../tests/all.tcl | ||
make test | ||
- name: Install ${{ matrix.compiler }} | ||
working-directory: ./unix/build-${{ matrix.compiler }} | ||
run: | | ||
sudo make install | ||
echo 'if {[catch {package require tclclockmod; clock format -now}]} {puts stderr "ERROR!"; exit 1} else {puts "OK."}' | tclsh | ||
- name: Clean ${{ matrix.compiler }} | ||
working-directory: ./unix/build-${{ matrix.compiler }} | ||
run: | | ||
make clean | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "tclconfig"] | ||
path = tclconfig | ||
url = https://github.com/tcltk/tclconfig.git |
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
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
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
Oops, something went wrong.