mirror of
https://github.com/starr-dusT/tzdb_to_nx
synced 2024-03-05 21:18:52 -08:00
gh/workflow: Propagate dir across other uses
This commit is contained in:
parent
31063d1881
commit
9a8dba8d76
8
.github/workflows/cmake.yml
vendored
8
.github/workflows/cmake.yml
vendored
@ -25,7 +25,9 @@ jobs:
|
||||
- name: Configure CMake
|
||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
run: |
|
||||
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
echo "nx_tzdb_dir=$(grep NX_TZDB_DIR ${{github.workspace}}/build/CMakeCache.txt | sed 's/.*=//g')" > "$GITHUB_ENV"
|
||||
|
||||
- name: Build
|
||||
# Build your program with the given configuration
|
||||
@ -34,11 +36,11 @@ jobs:
|
||||
- name: Package
|
||||
run: |
|
||||
mkdir -p ${{github.workspace}}/artifacts
|
||||
cp -rv ${{github.workspace}}/build/nx ${{github.workspace}}/artifacts/
|
||||
cp -rv ${{ env.nx_tzdb_dir }} ${{github.workspace}}/artifacts/
|
||||
|
||||
- name: Version
|
||||
run: |
|
||||
echo "nx_version=$(cat $(grep NX_TZDB_DIR ${{github.workspace}}/build/CMakeCache.txt | sed 's/.*=//g')/version.txt)" > "$GITHUB_ENV"
|
||||
echo "nx_version=$(cat ${{ env.nx_tzdb_dir }}/version.txt)" > "$GITHUB_ENV"
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v3
|
||||
|
Loading…
x
Reference in New Issue
Block a user