generated from irods/irods_project_template_cpp_client
-
Notifications
You must be signed in to change notification settings - Fork 8
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
[???] Add build action for PRs #370
Open
MartinFlores751
wants to merge
13
commits into
irods:main
Choose a base branch
from
MartinFlores751:T-github-action-build
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9f82fac
[???] Add build to github action
MartinFlores751 0b31c16
Add sudo where possibly needed
MartinFlores751 032f425
Add sudo to tee
MartinFlores751 2c171ac
Don't create a new cache for every run
MartinFlores751 8c75d54
Change how keys are referenced
MartinFlores751 8d41ddf
Fix key name
MartinFlores751 e35c861
Use cache only on PRs
MartinFlores751 ff8c24e
Create cache cleaner
MartinFlores751 343e575
Move cache cleaner to own file
MartinFlores751 d3806c2
Update key value
MartinFlores751 b303c25
Add time back to cache
MartinFlores751 dc8b6bd
Remove cache cleaner
MartinFlores751 08942d6
Remove ccache
MartinFlores751 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: iRODS HTTP API Builder | ||
on: [pull_request] | ||
jobs: | ||
build: | ||
name: Build iRODS HTTP API | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Install Misc | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's use the same wording as in irods/irods for this.
|
||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq \ | ||
apt-transport-https \ | ||
git \ | ||
gnupg \ | ||
lsb-release \ | ||
wget \ | ||
g++-11 \ | ||
gcc-11 \ | ||
libcurl4-gnutls-dev \ | ||
libssl-dev \ | ||
libssl3 \ | ||
ninja-build | ||
- name: Install iRODS | ||
run: | | ||
wget -qO - https://packages.irods.org/irods-signing-key.asc | sudo apt-key add - && | ||
echo "deb [arch=amd64] https://packages.irods.org/apt/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/renci-irods.list | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq \ | ||
irods-dev=4.3.2-0~jammy \ | ||
irods-runtime=4.3.2-0~jammy | ||
Comment on lines
+31
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we using 4.3.2 here because it's the declared minimum required version in the CMakeLists? |
||
- name: Install iRODS Externals | ||
run: | | ||
wget -qO - https://unstable.irods.org/irods-unstable-signing-key.asc | sudo apt-key add - | ||
echo "deb [arch=amd64] https://unstable.irods.org/apt/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/renci-irods-unstable.list | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq \ | ||
irods-externals-clang13.0.1-0 \ | ||
irods-externals-cmake3.21.4-0 \ | ||
irods-externals-fmt-libcxx8.1.1-1 \ | ||
irods-externals-json3.10.4-0 \ | ||
irods-externals-jwt-cpp0.6.99.1-0 \ | ||
irods-externals-nanodbc-libcxx2.13.0-2 \ | ||
irods-externals-spdlog-libcxx1.9.2-2 | ||
- name: Configure CMake | ||
run: | | ||
export PATH=/opt/irods-externals/cmake3.21.4-0/bin:$PATH | ||
mkdir build | ||
cmake -GNinja -B build/ -S . | ||
- name: Build and Package | ||
run: | | ||
export PATH=/opt/irods-externals/cmake3.21.4-0/bin:$PATH | ||
cmake --build build/ -t package |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Looking at irods/irods, how do you feel about changing this to one of the following?
Build-Ubuntu
build-irods-http-api-ubuntu
Then we could expand this to cover other versions of Ubuntu, and later other platforms such as EL8 and EL9.