File tree Expand file tree Collapse file tree 3 files changed +37
-56
lines changed
Expand file tree Collapse file tree 3 files changed +37
-56
lines changed Original file line number Diff line number Diff line change 11name : linux
22
3- on :
3+ on :
44 push :
5+ branches :
6+ - ' **' # Runs on push to any branch
7+ tags :
8+ - ' *' # Runs on any tag push
9+ pull_request :
10+ branches :
11+ - main # Runs on pull requests targeting the main branch
512
613jobs :
714
815 build-linux :
916
10- runs-on : ${{ matrix.os }}
11- strategy :
12- matrix :
13- os : [ubuntu-22.04]
17+ if : github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main')
18+ runs-on : ubuntu-22.04
1419
1520 steps :
1621 - uses : actions/checkout@v4
17- - name : set env vars
18- run : |
19- if [ ${{github.ref_name}} == 'juce8' ]; then
20- echo "GUI_BRANCH=development-juce8" >> "$GITHUB_ENV"
21- elif [ ${{github.ref_name}} == 'testing-juce8' ]; then
22- echo "GUI_BRANCH=testing-juce8" >> "$GITHUB_ENV"
23- else
24- echo "Invalid branch : ${{github.ref_name}}"
25- exit 1
26- fi
2722 - name : setup
2823 run : |
2924 sudo apt update
3025 cd ../..
31- git clone https://github.com/open-ephys/plugin-GUI.git --branch $GUI_BRANCH
26+ git clone https://github.com/open-ephys/plugin-GUI.git --branch main --single-branch
3227 sudo ./plugin-GUI/Resources/Scripts/install_linux_dependencies.sh
3328 cd plugin-GUI/Build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
3429 - name : build
3934# - name: test
4035# run: cd build && ctest
4136 - name : deploy
42- if : github.ref == 'refs/heads/testing-juce8 '
37+ if : github.ref == 'refs/heads/main '
4338 env :
4439 ARTIFACTORY_ACCESS_TOKEN : ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
4540 build_dir : " Build"
Original file line number Diff line number Diff line change 11name : mac
22
3- on :
3+ on :
44 push :
5+ branches :
6+ - ' **' # Runs on push to any branch
7+ tags :
8+ - ' *' # Runs on any tag push
9+ pull_request :
10+ branches :
11+ - main # Runs on pull requests targeting the main branch
512
613jobs :
714
815 build-mac :
916
10- runs-on : ${{ matrix.os }}
11- strategy :
12- matrix :
13- os : [macos-latest]
17+ if : github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main')
18+ runs-on : macos-latest
1419
1520 steps :
1621 - uses : actions/checkout@v4
17- - name : set env vars
18- run : |
19- if [ ${{github.ref_name}} == 'juce8' ]; then
20- echo "GUI_BRANCH=development-juce8" >> "$GITHUB_ENV"
21- elif [ ${{github.ref_name}} == 'testing-juce8' ]; then
22- echo "GUI_BRANCH=testing-juce8" >> "$GITHUB_ENV"
23- else
24- echo "Invalid branch : ${{github.ref_name}}"
25- exit 1
26- fi
2722 - name : setup
2823 run : |
2924 cd ../..
30- git clone https://github.com/open-ephys/plugin-GUI.git --branch $GUI_BRANCH
25+ git clone https://github.com/open-ephys/plugin-GUI.git --branch main --single-branch
3126 cd plugin-GUI/Build && cmake -G "Xcode" ..
3227 - name : build
3328 run : |
3732# - name: test
3833# run: cd build && ctest
3934 - name : codesign_deploy
40- if : github.ref == 'refs/heads/testing-juce8 '
35+ if : github.ref == 'refs/heads/main '
4136 env :
4237 ARTIFACTORY_ACCESS_TOKEN : ${{ secrets.artifactoryApiKey }}
4338 MACOS_CERTIFICATE : ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
Original file line number Diff line number Diff line change 11name : Windows
22
3- on :
3+ on :
44 push :
5+ branches :
6+ - ' **' # Runs on push to any branch
7+ tags :
8+ - ' *' # Runs on any tag push
9+ pull_request :
10+ branches :
11+ - main # Runs on pull requests targeting the main branch
512
613jobs :
714
815 build-windows :
9-
10- runs-on : ${{ matrix.os }}
11- strategy :
12- matrix :
13- os : [windows-latest]
16+ if : github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main')
17+ runs-on : windows-latest
1418
1519 steps :
1620 - uses : actions/checkout@v4
17- - name : set env vars
18- run : |
19- if [ ${{github.ref_name}} == 'juce8' ]; then
20- echo "GUI_BRANCH=development-juce8" >> "$GITHUB_ENV"
21- echo "GUI_LIB_VERSION=v1.0.0-dev" >> "$GITHUB_ENV"
22- elif [ ${{github.ref_name}} == 'testing-juce8' ]; then
23- echo "GUI_BRANCH=testing-juce8" >> "$GITHUB_ENV"
24- echo "GUI_LIB_VERSION=v1.0.0-alpha" >> "$GITHUB_ENV"
25- else
26- echo "Invalid branch : ${{github.ref_name}}"
27- exit 1
28- fi
29- shell : bash
3021 - name : setup
3122 run : |
3223 cd ../..
33- git clone https://github.com/open-ephys/plugin-GUI.git --branch $GUI_BRANCH
24+ git clone https://github.com/open-ephys/plugin-GUI.git --branch main --single-branch
3425 cd plugin-GUI/Build
3526 cmake -G "Visual Studio 17 2022" -A x64 ..
3627 mkdir Release && cd Release
37- curl -L https://openephys.jfrog.io/artifactory/GUI-binaries/Libraries/open-ephys-lib-$GUI_LIB_VERSION .zip --output open-ephys-lib.zip
28+ curl -L https://openephys.jfrog.io/artifactory/GUI-binaries/Libraries/open-ephys-lib-v1.0.0 .zip --output open-ephys-lib.zip
3829 unzip open-ephys-lib.zip
3930 shell : bash
4031 - name : configure
5344# - name: test
5445# run: cd build && ctest
5546 - name : deploy
56- if : github.ref == 'refs/heads/testing-juce8 '
47+ if : github.ref == 'refs/heads/main '
5748 env :
5849 ARTIFACTORY_ACCESS_TOKEN : ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
5950 build_dir : " Build/Release"
You can’t perform that action at this time.
0 commit comments