Skip to content

Commit

Permalink
Add correct version to dev builds
Browse files Browse the repository at this point in the history
  • Loading branch information
vespakoen committed Jan 11, 2023
1 parent 536cf88 commit 41157c7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ jobs:
- name: cxxlib
shell: bash
run: |
git describe --tags > src/git-tag.txt
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
version="${GITHUB_REF##*/}"
else
version="$(date '+%Y.%-m.%-d').dev${GITHUB_RUN_NUMBER}"
fi
echo "${version}" > src/git-tag.txt
if [ "${{ matrix.docker_image }}" != "" ]; then
export OCL_DOCKER_IMAGE="${{ matrix.docker_image }}"
Expand Down Expand Up @@ -146,7 +151,12 @@ jobs:
- name: nodejslib
shell: bash
run: |
git describe --tags > src/git-tag.txt
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
version="${GITHUB_REF##*/}"
else
version="$(date '+%Y.%-m.%-d')-dev.${GITHUB_RUN_NUMBER}"
fi
echo "${version}" > src/git-tag.txt
if [ "${{ matrix.docker_image }}" != "" ]; then
export OCL_DOCKER_IMAGE="${{ matrix.docker_image }}"
Expand Down Expand Up @@ -262,7 +272,7 @@ jobs:
version="$(date '+%Y.%-m.%-d').dev${GITHUB_RUN_NUMBER}"
fi
sed -i.bak "s/^version = .*/version = \"${version}\"/g" pyproject.toml && rm pyproject.toml.bak
git describe --tags > src/git-tag.txt
echo "${version}" > src/git-tag.txt
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
if: matrix.architecture == 'aarch64'
Expand Down
8 changes: 4 additions & 4 deletions examples/cpp/test/test_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ int main()
std::vector<ocl::MillingCutter *> cutters;
cutters.push_back(&cylCutter);
cutters.push_back(&ballCutter);
// cutters.push_back(&bullCutter);
cutters.push_back(&bullCutter);
cutters.push_back(&coneCutter);
double z = 4;
double z = 0.5;
double sampling = 0.1;
for (auto cutter : cutters)
{
Expand All @@ -168,7 +168,7 @@ int main()
}
ocl::Path path = ocl::Path();
int i = 0;
for (double y = 0; y <= 0.3; y = y + 0.1)
for (double y = 0; y <= 0.2; y = y + 0.1)
{
bool ltr = ((int)i % 2) == 0;
ocl::Point p1 = ocl::Point(ltr ? -2 : 11, y, 0);
Expand All @@ -192,4 +192,4 @@ int main()
}

return 0;
}
}

0 comments on commit 41157c7

Please sign in to comment.