-
Notifications
You must be signed in to change notification settings - Fork 8
Add build matrix with CentOS to GH Actions #558
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
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2830248
Add container matrix with CentOS
b91852f
Change runs-on to latest Ubuntu
4866ed6
Move deps installation step and change step names
74e1c0f
Add step to install make on Ubuntu
b87c8f8
Remove sudo
33c3551
Update before installing make
79e6d9f
Split Ubuntu and CentOS workflows and only build on CentOS
19f7440
Split docs step
6169a52
Add python backend testing step
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 hidden or 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,66 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
|
|
||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build_centos: | ||
| # GitHub Actions does not currently support CentOS as an official platform, so in order to | ||
| # test on this OS we need to run it as a container based on the Ubuntu environment | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| container: ["centos:7"] | ||
|
|
||
| container: | ||
| image: ${{ matrix.container }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|
|
||
| - name: Install make and sudo | ||
| run: | | ||
| yum update -y | ||
| yum install -y sudo | ||
| yum groupinstall -y "Development Tools" | ||
| yum install -y gtk3 libXext libXrender libXtst libX11 libXau libXcursor libXdmcp libXfixes libXi libXmu libXp libXpm libXt | ||
|
|
||
| - name: Install requirements | ||
| run: | | ||
| make deps | ||
| make venv | ||
| . venv/bin/activate | ||
| export PATH=`npm bin`:$PATH | ||
| make pythondeps | ||
| python -c "import setuptools; print(setuptools.__version__)" | ||
| pip --version | ||
|
|
||
| - name: Install Firefox | ||
| run: | | ||
| cd /usr/local | ||
| curl -O http://ftp.mozilla.org/pub/firefox/releases/75.0/linux-x86_64/en-US/firefox-75.0.tar.bz2 | ||
| tar xvjf firefox-75.0.tar.bz2 | ||
| sudo ln -s /usr/local/firefox/firefox /usr/bin/firefox | ||
|
|
||
| - name: Install Simphony-Remote | ||
| run: | | ||
| . venv/bin/activate | ||
| make install | ||
|
|
||
| - name: Install development requirements | ||
| run: | | ||
| . venv/bin/activate | ||
| make devdeps | ||
|
|
||
| - name: Test python backend | ||
| run: | | ||
| . venv/bin/activate | ||
| export LC_ALL=en_US.UTF-8 | ||
| export LANG=en_US.UTF-8 | ||
| make pythontest | ||
This file contains hidden or 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
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.