-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Update CI release builds to remove goxc #1340
Conversation
I am not a big fan of doing the lint in the same pipeline, as the system tests run for 20 minutes and they can run even if lint complains. I moved the lint to a separate check, so it can run in parallel and same me a lot of time... :-) |
.github/workflows/ci.yml
Outdated
go version | ||
make release | ||
echo ${{ github.ref_name }} > VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use make version
here to have the same version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and I would move this part to the Makefile, keep it as make release
so the same can be run locally or in a docker container.
.github/workflows/ci.yml
Outdated
@@ -53,7 +48,18 @@ jobs: | |||
|
|||
- name: "Get aptly version" | |||
run: | | |||
make version | |||
make version > VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the VERSION
file is generated in debina/rules and the Makefile, the pipeline should avoid writing to the git repo directly I think...
i pulled in some of your changes to test it ... it's great to get rid of goxz, thanks a lot ! |
https://github.com/aptly-dev/aptly/actions/runs/10919177530/job/30307362665 seems it cannot find the $path somehow |
hmm seems like it's an issue with escaping slashes in the branch/ref name, we may have to replace slashes with dashes in ref_name |
I got it somehow to build on my branch (you might wanna rebase). however the contects of the zip files seem wrong, if you wann ahave a look at it... for the lint part, did I assume right that the whole pipeline (i.e. system tests) will not run if link fails ? |
Yeah that was my intention, if linting is going to fail anyway then we should skip the 20 minute unit tests, but if you feel otherwise that's fine with me |
I would like to get both lint and system tests results for PRs directly, otherwise I might have to fix lint errors before seeing if it actually works, as it happened before. Merging will not be done with a failed lint run anyway... |
22b7403
to
8b28908
Compare
7e6b3f3
to
4d96ebe
Compare
updated to use makefile for release and version, zip archive should now also be formatted correctly |
looks great ! I cherry-picked and updated slightly, the versions are now consistently based on the debian version, and release versions are used when a tag is present. aptly_1.6.0~beta1+20240919091930.86e0512e_freebsd_arm.zip.zip the artifacts seem to be double zipped still, and we need to check if the contents are exactly the same as before... |
The contents of the original archives look as follows:
this is from |
0005fe1
to
00504b6
Compare
6d7f78b
to
4d96ebe
Compare
The double-zip is related to actions/upload-artifact#39 and doesn't end up in the final release zips like these Based on the issue there isn't a good workaround, maybe could try a different upload/download action?
I am happy to mirror the layout of the previous release archives; do you have interest in adding the completion files to the archives moving forward? |
Seems to work now on my branch: https://github.com/aptly-dev/aptly/actions/runs/10944845975/job/30388887371 I got rid of the double zip by unzipping the go build output, and I added the missing files. I think the architves lok ok now. Also the matrix build is now properly used for the debian packages, following your example. Also updated the version handling a bit, to prepare testing a release verion without CI suffix... |
bb328ce
to
9d0e1c6
Compare
It looks like the release doesn't include any files now. I think you can't just upload folders to the release, you need archives (the double zip doesn't happen on the actual release page) |
Fixes #
Requirements
All new code should be covered with tests, documentation should be updated. CI should pass.
Description of the Change
Checklist
AUTHORS