Skip to content

CI: Update and fix #957

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

Merged
merged 2 commits into from
Jan 26, 2024
Merged

CI: Update and fix #957

merged 2 commits into from
Jan 26, 2024

Conversation

jarzec
Copy link
Contributor

@jarzec jarzec commented Jan 25, 2024

  • Update the regression-tests/run-tests.sh
    • Unify the checks using git diff.
    • Add a command line argument -l for setting a label of the test run to be use in the name of the patch file (if it is created).
    • Update the extension of the generated patch files to be .patch which seems to be the accepted convention.
  • Update the .github/workflows/regression-tests.yml workflow file.
    • Update the checkout action to avoid GitHub action deprecation warnings.
    • Update the name of the eventual patch artefact file to include the OS identification.
  • Update MacOS tests after 29a1f43.

@@ -27,27 +27,27 @@ jobs:
compiler: cl.exe
steps:
- name: Checkout repo
uses: actions/checkout@v3
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Explanation] v3 was causing deprecation warnings from GitHub

shell: cmd

- name: Upload patch
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.compiler }}-patch.diff
path: regression-tests/${{ matrix.compiler }}-patch.diff
name: ${{ matrix.os }}-${{ matrix.compiler }}.patch
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Explanation] Adding the OS label to the patch file name will avoid issue e.g. if the same compiler is used at some stage on Ubuntu and MacOS.

@hsutter hsutter merged commit fa0134a into hsutter:main Jan 26, 2024
@hsutter
Copy link
Owner

hsutter commented Jan 26, 2024

Thanks!

bluetarpmedia pushed a commit to bluetarpmedia/cppfront that referenced this pull request Feb 7, 2024
* CI: Unify diffing in run-tests.shi and update workflow

* CI: Update MacOs tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants