From 1ad40f143b387f5225c71dd11522565da8996155 Mon Sep 17 00:00:00 2001 From: supermerill Date: Thu, 19 Dec 2019 12:40:36 +0100 Subject: [PATCH] really replace UNKNOWN by current date for automatic builds --- .github/workflows/ccpp_mac.yml | 4 ++-- .github/workflows/ccpp_ubuntu.yml | 4 ++-- .github/workflows/ccpp_win.yml | 7 ++++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ccpp_mac.yml b/.github/workflows/ccpp_mac.yml index 44b1a14a4..d8bcd22ac 100644 --- a/.github/workflows/ccpp_mac.yml +++ b/.github/workflows/ccpp_mac.yml @@ -12,6 +12,8 @@ jobs: steps: - uses: actions/checkout@v1 + - name: change date in version + run: sed -i "s/+UNKNOWN/_$(date '+%F')/" version.inc - name: mkdir in deps run: mkdir deps/build - name: cmake deps @@ -25,8 +27,6 @@ jobs: - name: cmake working-directory: ./build run: cmake .. -DCMAKE_PREFIX_PATH="$PWD/../deps/build/destdir/usr/local" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" -DSLIC3R_STATIC=1 - - name: change date in version - run: sed "s/UNKNOWN/$(date '+%F')/" version.inc - name: make slic3r working-directory: ./build run: make slic3r diff --git a/.github/workflows/ccpp_ubuntu.yml b/.github/workflows/ccpp_ubuntu.yml index a3ccd21ee..9559dd828 100644 --- a/.github/workflows/ccpp_ubuntu.yml +++ b/.github/workflows/ccpp_ubuntu.yml @@ -12,6 +12,8 @@ jobs: steps: - uses: actions/checkout@v1 + - name: change date in version + run: sed -i "s/+UNKNOWN/_$(date '+%F')/" version.inc - name: install gtk2 glew run: sudo apt-get install libgtk2.0-dev libglew-dev libudev-dev - name: mkdir in deps @@ -27,8 +29,6 @@ jobs: - name: cmake working-directory: ./build run: cmake .. -DCMAKE_PREFIX_PATH="/home/runner/work/Slic3r/Slic3r/deps/build/destdir/usr/local" -DSLIC3R_STATIC=1 - - name: change date in version - run: sed "s/UNKNOWN/$(date '+%F')/" version.inc - name: make slic3r working-directory: ./build run: make slic3r diff --git a/.github/workflows/ccpp_win.yml b/.github/workflows/ccpp_win.yml index b6ece530a..89eb95a00 100644 --- a/.github/workflows/ccpp_win.yml +++ b/.github/workflows/ccpp_win.yml @@ -12,6 +12,9 @@ jobs: steps: - uses: actions/checkout@v1 - uses: ilammy/msvc-dev-cmd@v1 + - name: change date in version + shell: powershell + run: (Get-Content version.inc) | Foreach-Object {$_ -replace "\+UNKNOWN", ("_" + [datetime]::Today.ToString("yyyy-MM-dd"))} | Set-Content version.inc - name: mkdir in deps run: mkdir deps/build - name: cmake deps @@ -24,10 +27,8 @@ jobs: - name: cmake working-directory: ./build run: cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH="d:\a\Slic3r\Slic3r\deps\build\destdir\usr\local" - - name: change date in version - shell: powershell - run: (Get-Content version.inc) | Foreach-Object {$_ -replace "UNKNOWN", [datetime]::Today.ToString("yyyy-MM-dd")} | Set-Content version.inc - name: make + working-directory: ./build run: msbuild /m /P:Configuration=Release INSTALL.vcxproj - name: create directory and copy into it working-directory: ./build