Skip to content
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

Github Actions #163

Merged
merged 9 commits into from
Jan 16, 2024
Merged

Github Actions #163

merged 9 commits into from
Jan 16, 2024

Conversation

walkero-gr
Copy link
Contributor

I updated the Github actions to:

  • Run an automated build when a PR is created to the master branch
  • Run an automated build when a PR is merged into the master branch
  • Run a release when a new tag is created from the master branch. The tag should be named like MAJOR.MINOR or based on semantic versioning like, MAJOR.MINOR.PATCH.

The release job right now does the following:

  • Builds clib4 based on the code that exists in master branch when the tag is created
  • Creates the LHA and DEB release files which are uploaded in the GitHub release
  • Uploads the DEB file to the APT server @afxgroup maintains, while it deletes the older versions and runs the script to update the releases
  • Uploads the LHA file along with the README file to OS4Depot FTP server, but first update the file with the new version and the PASSPHRASE

cp ./os4depot.readme ./os4depot-release/clib4_lha.readme
sed -i "s/VERSION_TAG/${{ github.event.release.tag_name }}/" ./os4depot-release/os4depot.readme
sed -i "s/OS4DEPOT_PASSPHRASE/${{ secrets.OS4DEPOT_PASSPHRASE }}/" ./os4depot-release/os4depot.readme
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The OS4DEPOT_PASSPHRASE needs to be added to the Secrets of the repository

All deprecated OS4 functions are replaced by modern OS4 one.

If you find any issue, please let us know at:
https://github.com/AmigaLabs/clib4/issues
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file will be uploaded to OS4Depot on every release. Please feel free to alter the text and also add more information. Also, please check the rest of the fields, if they need changes.

@@ -55,7 +55,7 @@ LIB_ROOT ?= $(shell pwd)
LIB_DIR = $(LIB_ROOT)/library
BUILD_DIR = $(LIB_ROOT)/build
OUTPUT_LIB = $(BUILD_DIR)/lib
DPKG_LIB = clib4_1.0_amd64
DPKG_LIB ?= clib4_1.0_amd64
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did this to pass this value during the release action as an argument. Every release will take the version from the release tag.

scp_target: /opt/amigarepo/ubuntu/pool/main
before_script: |
rm /opt/amigarepo/ubuntu/pool/main/clib4*.deb
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here deletes the previous released of the clib4 DEB file in the server

rm /opt/amigarepo/ubuntu/pool/main/clib4*.deb
after_script: |
/root/regenerate-packages.sh
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This script generates the packages files that are needed for the apt to access them. This is needed since we upgraded the clib4 file

@afxgroup afxgroup merged commit 142d3f8 into AmigaLabs:master Jan 16, 2024
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