Skip to content

ci: NativeAot build should not use condition #3

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 4 commits into from
Apr 20, 2025
Merged

ci: NativeAot build should not use condition #3

merged 4 commits into from
Apr 20, 2025

Conversation

guitarrapc
Copy link
Owner

No description provided.

@Copilot Copilot AI review requested due to automatic review settings April 20, 2025 09:52
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses the CI configuration for NativeAOT builds by updating archive creation steps in the release workflow.

  • Changes the conditions for archive creation steps
  • Updates the archive paths for Windows and Linux/macOS builds
Files not reviewed (1)
  • src/DotfilesLinker/DotfilesLinker.csproj: Language not supported
Comments suppressed due to low confidence (1)

.github/workflows/release.yaml:59

  • The Windows archive step now compresses from './publish/publish/...' with a potential duplicate 'publish' directory. Verify that the intended directory structure is correct.
run: Compress-Archive -Path ./publish/publish/DotfilesLinker/release_${{ matrix.rid }}/* -DestinationPath ${{ matrix.archive_name }}

@guitarrapc guitarrapc requested a review from Copilot April 20, 2025 10:06
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refines the CI workflow for the NativeAot build by updating condition expressions and revising artifact archiving and checksum generation steps.

  • Updates condition expressions to use GitHub Actions expression syntax.
  • Adjusts archive paths and adds checksum generation to ensure artifacts are properly validated before release.
Files not reviewed (1)
  • src/DotfilesLinker/DotfilesLinker.csproj: Language not supported
Comments suppressed due to low confidence (2)

.github/workflows/release.yaml:55

  • The removal of the 'working-directory' field may cause the dotnet publish command to run in an unintended directory. Please ensure that this change is intentional and that the correct working directory is used.
working-directory: ./src/DotfilesLinker

.github/workflows/release.yaml:59

  • The updated archive path contains a duplicated 'publish' folder segment ('./publish/publish/'). Verify that this double nesting correctly reflects the output directory structure produced by the dotnet publish command.
run: Compress-Archive -Path ./publish/publish/DotfilesLinker/release_${{ matrix.rid }}/* -DestinationPath ${{ matrix.archive_name }}

@guitarrapc guitarrapc requested a review from Copilot April 20, 2025 10:12
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR revises the release workflow by modifying the artifact publishing and archiving steps, and by adding pre-release artifact validation and checksum generation.

  • Removed the Native AOT build condition flag and adjusted the publish command.
  • Updated archive creation commands for both Windows and Linux environments.
  • Introduced an artifact existence check and a new checksum generation step.
Files not reviewed (1)
  • src/DotfilesLinker/DotfilesLinker.csproj: Language not supported
Comments suppressed due to low confidence (1)

.github/workflows/release.yaml:63

  • The tar command for Linux appears to use an inconsistent directory path ('./publish/publish/...') compared to the Windows archive step which uses './artifacts/publish/...'. Please verify the intended artifact directory and update the path accordingly.
run: tar -czvf ${{ matrix.archive_name }} -C ./publish/publish/DotfilesLinker/release_${{ matrix.rid }} .

@guitarrapc guitarrapc requested a review from Copilot April 20, 2025 10:13
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the release workflow by removing the NativeAOT build condition and standardizing the artifact directory.

  • Removed the AOT-specific dotnet publish flag and working-directory for the DotfilesLinker project.
  • Updated archive creation steps to reference the new artifacts structure and OS-specific conditionals.
  • Added a step to verify artifact existence and generate checksums for the release.
Files not reviewed (1)
  • src/DotfilesLinker/DotfilesLinker.csproj: Language not supported

@guitarrapc guitarrapc enabled auto-merge April 20, 2025 10:15
@guitarrapc guitarrapc merged commit a05fe6d into main Apr 20, 2025
10 checks passed
@guitarrapc guitarrapc deleted the ci/aot branch April 20, 2025 10:16
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.

1 participant