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

Modernize GH Actions #78

Merged
merged 5 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
sudo aqt install --outputdir /Qt 5.12.10 linux desktop -m qtcharts qtnetworkauth qtpurchasing qtdatavis3d qtscript qtvirtualkeyboard qtwebengine qtwebglplugin

- name: Clone CemrgApp
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Code Analysis
env:
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ jobs:
needs: [Variables, Build-Linux, Build-macOS]
steps:
- name: Download packages
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: Packages
pattern: Packages-*
merge-multiple: true

- name: Upload Linux package
uses: actions/[email protected]
Expand Down Expand Up @@ -80,7 +81,7 @@ jobs:
- name: Install missing packages
run: |
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt install libxt-dev libtiff5-dev libfontconfig1 mesa-common-dev libglu1-mesa-dev libxcomposite1 libxcursor1 libxrender1 libxi6 libxtst6 libasound2 libnspr4 libnss3 libxkbcommon-dev libxkbcommon-x11-dev doxygen git cmake python3-pip gcc-6 g++-6 -y
sudo DEBIAN_FRONTEND=noninteractive apt install libxt-dev libtiff5-dev libfontconfig1 mesa-common-dev libglu1-mesa-dev libxcomposite1 libxcursor1 libxrender1 libxi6 libxtst6 libasound2 libnspr4 libnss3 libxkbcommon-dev libxkbcommon-x11-dev doxygen git cmake python3-pip gcc g++ -y
sudo apt remove --auto-remove icu-devtools libicu-dev -y

- name: Install Qt
Expand All @@ -96,7 +97,7 @@ jobs:
run: sudo find /MITK/ -exec touch -a -m -d 20210401 {} \;

- name: Clone CemrgApp
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: CemrgApp

Expand Down Expand Up @@ -128,9 +129,9 @@ jobs:
mv CemrgApp-Linux.zip ${{ github.workspace }}/

- name: Upload package
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Packages
name: Packages-Linux
path: CemrgApp-Linux.zip


Expand Down Expand Up @@ -170,7 +171,7 @@ jobs:
# run: dir -R c:\MITK | foreach { $_.LastWriteTime = [DateTime]::ParseExact('01-04-21', 'dd-MM-yy', $null) }
#
# - name: Clone CemrgApp
# uses: actions/checkout@v2
# uses: actions/checkout@v4
# with:
# path: CemrgApp
#
Expand Down Expand Up @@ -209,9 +210,9 @@ jobs:
# move CemrgApp-Windows.zip ${{ github.workspace }}\
#
# - name: Upload package
# uses: actions/upload-artifact@v2
# uses: actions/upload-artifact@v4
# with:
# name: Packages
# name: Packages-Windows
# path: CemrgApp-Windows.zip


Expand Down Expand Up @@ -263,7 +264,7 @@ jobs:
run: find /Users/Shared/MITK/ -exec touch -a -m -t 202104010000 {} \;

- name: Clone CemrgApp
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: CemrgApp

Expand Down Expand Up @@ -313,7 +314,7 @@ jobs:
hdiutil create -volname CemrgApp -srcfolder /Users/Shared/CemrgApp-macOS -ov -format UDZO ${{ github.workspace }}/CemrgApp-macOS.dmg

- name: Upload package
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Packages
name: Packages-macOS
path: CemrgApp-macOS.dmg
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install missing packages
run: |
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt install libxt-dev libtiff5-dev libfontconfig1 mesa-common-dev libglu1-mesa-dev libxcomposite1 libxcursor1 libxrender1 libxi6 libxtst6 libasound2 libnspr4 libnss3 libxkbcommon-dev libxkbcommon-x11-dev libtbb2 doxygen git cmake python3-pip gcc-6 g++-6 -y
sudo DEBIAN_FRONTEND=noninteractive apt install libxt-dev libtiff5-dev libfontconfig1 mesa-common-dev libglu1-mesa-dev libxcomposite1 libxcursor1 libxrender1 libxi6 libxtst6 libasound2 libnspr4 libnss3 libxkbcommon-dev libxkbcommon-x11-dev libtbb2 doxygen git cmake python3-pip gcc g++ -y
sudo apt remove --auto-remove icu-devtools libicu-dev -y

- name: Install Qt
Expand All @@ -42,7 +42,7 @@ jobs:
run: sudo find /MITK/ -exec touch -a -m -d 20210401 {} \;

- name: Clone CemrgApp
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: CemrgApp

Expand All @@ -52,8 +52,8 @@ jobs:
- name: Build
working-directory: /Build
env:
CC: gcc-6
CXX: g++-6
CC: gcc
CXX: g++
run: make -j4

- name: Test
Expand All @@ -64,10 +64,9 @@ jobs:
run: ctest -R Cemrg -V

- name: Code Coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
functionalities: coveragepy
root_dir: /CemrgApp/
gcov_root_dir: /Build/MITK-build
directory: ${{ github.workspace }}
plugin: gcov
Loading