Conversation
…ging to productive)
|
I will look into it later ;-). Windows support (see my PR). Can you move your Android scripts to /android? |
|  | ||
|
|
||
| Jamulus - Internet Jam Session Software | ||
| Jamulus - Internet Jam Session Software |
There was a problem hiding this comment.
To generate new commits and trigger the ci...
Please ignore/ revert that!
There was a problem hiding this comment.
You should probably ensure that you trigger it differently and open a new PR with only working commits.
|
moved build to a subdirectory of "android" for consistency with current structure. |
| push: | ||
| tags: | ||
| - "r*" # run this action if a tag beginning with r is created | ||
| workflow_dispatch: |
There was a problem hiding this comment.
Not sure if we should allow workflow_dispatch (for me it didn't always work)
| @@ -0,0 +1,39 @@ | |||
| #!/usr/bin/python3 | |||
There was a problem hiding this comment.
Python. Interesting. So you get some information from the current build/tag which triggered this?
There was a problem hiding this comment.
yes.
Easier string manipulations like startsWith.
| release_version_name = jamulus_version | ||
|
|
||
| if fullref.startswith("refs/tags/"): | ||
| print('python is Tag') |
There was a problem hiding this comment.
yes, changed to a more meaningful text
| PUSHED_NAME=${GITHUB_REF#refs/*/} | ||
|
|
||
| # calculate various variables | ||
| python3 ${1}/.github/actions_scripts/analyse_git_reference.py ${GITHUB_REF} ${PUSHED_NAME} ${JAMULUS_VERSION} |
There was a problem hiding this comment.
Would it be possible to also get the Jamulus version and Tag via python? this would be much cleaner.
There was a problem hiding this comment.
possible, but more part of #854 optimizations.
| jobs: | ||
|
|
||
| ## Creates the releases on GitHub ## | ||
| jobs: |
There was a problem hiding this comment.
You've changed a lot and I still have to look through it. But it seems to work. Would it be possible that you add the same comments as I did?
There was a problem hiding this comment.
at lease I did my best, feel free to adjust them to your needs
| run: sh linux/autorelease_linux.sh ${{ github.workspace }} | ||
| if: matrix.config.os == 'ubuntu-18.04' | ||
| if: matrix.config.target_os == 'linux' | ||
| - name: "Build (Windows)" |
There was a problem hiding this comment.
Should be removed and synced to my changes.
There was a problem hiding this comment.
how? please make a suggestion
There was a problem hiding this comment.
If you've removed the Install Qt steps (I think this is now the case) and run my script autobuild_windows.ps1 this is solved. I think this PR is no longer up to date.
|  | ||
|
|
||
| Jamulus - Internet Jam Session Software | ||
| Jamulus - Internet Jam Session Software |
There was a problem hiding this comment.
You should probably ensure that you trigger it differently and open a new PR with only working commits.
| @@ -0,0 +1,82 @@ | |||
| FROM ubuntu:18.04 | |||
There was a problem hiding this comment.
Can't say much from here on (I don't know android building and docker)
|
|
||
| # Download / install Qt | ||
| ####ADD https://code.qt.io/cgit/qbs/qbs.git/plain/scripts/install-qt.sh ./ | ||
| COPY install-qt.sh /install-qt.sh |
There was a problem hiding this comment.
Install-qt.sh that's interesting.
There was a problem hiding this comment.
Mmmm. We do need to sort this out so we've a build script (that just gets the pre-reqs and does the qmake-make) per platform so it's re-usable - then the packaging and code analysis can both use it as they see fit.
There was a problem hiding this comment.
that is likely possible.
Though I also see some benefits in using a docker.
Maybe splitting in "installing qt and pre-reqs" and "qmake-make" can be done, to allow caching of the first step?
| @@ -0,0 +1,339 @@ | |||
| #!/usr/bin/env bash | |||
There was a problem hiding this comment.
Can you also use aqt to install qt? This script looks quite complicated to me.
There was a problem hiding this comment.
I tried copying your aqt method to the CodeQL workflow... without success. Maybe a bad dependency...
There was a problem hiding this comment.
Don't know. I was really happy to have something working.
make it work, make it fast, make it clean...
There was a problem hiding this comment.
Strange. For me, it worked. Maybe the server is down? At least it says something like this in the CodeQl action at the moment.
There was a problem hiding this comment.
Yes. It seems to be down: https://forum.qt.io/topic/122837/download-qt-io-is-down
| # calculate various variables | ||
| python3 ${1}/.github/actions_scripts/analyse_git_reference.py ${GITHUB_REF} ${PUSHED_NAME} ${JAMULUS_VERSION} | ||
|
|
||
| perl ${1}/.github/actions_scripts/getChangelog.pl ${1}/ChangeLog ${VERSION} > ${1}/autoLatestChangelog.md |
There was a problem hiding this comment.
You will have to rename ${VERSION} to ${JAMULUS_VERSION} if you also renamed the variable above.
Also Codacy complained about missing quotes. We might need to add them around the variables/file paths.
There was a problem hiding this comment.
thanks.
Where can i see these complaints when I develop something?
There was a problem hiding this comment.
You will not see them. I setup codacy on my repo only. You can just enable it if you create a codacy account (just google for it).
There was a problem hiding this comment.
Sorry guys, I accidentally used the PR branch for development. I will open a new request soon.
|
Sorry guys, I accidentally used the PR branch for development. I will open a new request soon. |
Resolves; #854 & #835
Also relates to: #853
intentionally not solving #856 & #857
Credit and thanks to @ann0see for contributing & support
!! DO NOT MERGE YET !!!
this pull request is for preview & discussion
please do not merge until @ann0see and I sorted out Windows & Android builds both working :)