Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix setting build num #190

Merged
merged 1 commit into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

runs-on: ${{ matrix.os }}
env:
BUILD_NUMBER: ${{ github.GITHUB_RUN_NUMBER }}
BUILD_NUMBER: ${{ github.run_number }}
strategy:
matrix:
os:
Expand All @@ -20,12 +20,12 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: make build dir
run: cmake -E make_directory ${{runner.workspace}}/build
- name: configure cmake
run: cmake -S ${{ github.workspace }} -B ${{runner.workspace}}/build
- name: build
run: cmake --build ${{runner.workspace}}/build
- name: setup/build CMake
run: |
echo "build number = ${BUILD_NUMBER}"
cmake -E make_directory ${{runner.workspace}}/build
cmake -S ${{ github.workspace }} -B ${{runner.workspace}}/build
cmake --build ${{runner.workspace}}/build
- name: make artifacts
run: cmake --build ${{runner.workspace}}/build --target ziti-prox-c
- name: zip artifacts
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

runs-on: ${{ matrix.os }}
env:
BUILD_NUMBER: ${{ github.GITHUB_RUN_NUMBER }}
BUILD_NUMBER: ${{ github.run_number }}
strategy:
matrix:
os:
Expand All @@ -21,12 +21,12 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: make build dir
run: cmake -E make_directory ${{runner.workspace}}/build
- name: configure cmake
run: cmake -S ${{ github.workspace }} -B ${{runner.workspace}}/build
- name: build
run: cmake --build ${{runner.workspace}}/build
- name: setup/build CMake
run: |
echo "BUILD_NUMBER = ${BUILD_NUMBER}"
cmake -E make_directory ${{runner.workspace}}/build
cmake -S ${{ github.workspace }} -B ${{runner.workspace}}/build
cmake --build ${{runner.workspace}}/build
- name: test
working-directory: ${{runner.workspace}}/build
run: ctest -VV --no-compress-output
Expand Down