25
25
echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_rsa
26
26
chmod 700 ~/.ssh
27
27
chmod 600 ~/.ssh/id_rsa
28
- cd /workspace/splitcells-net/
28
+ mkdir -p ~/.local/state/net.splitcells.network.worker/repos/public
29
+ cd ~/.local/state/net.splitcells.network.worker/repos/public
29
30
git clone --depth 1 https://codeberg.org/splitcells-net/net.splitcells.network.git
30
31
git clone --depth 1 https://codeberg.org/splitcells-net/net.splitcells.network.hub.git
31
32
- name : Build
@@ -35,27 +36,17 @@ jobs:
35
36
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
36
37
run : |
37
38
# export test_codecov=1 # Enable codecov profiles in POMs. TODO Code coverage is not working.
38
- cd /workspace/splitcells-net
39
- net.splitcells.network.hub/bin/net.splitcells.osi.repos.peers | xargs -i sh -c "test -d {} || git clone git@codeberg.org:splitcells-net/{}.git"
40
- cd /workspace/splitcells-net/net.splitcells.network
39
+ cd ~/.local/state/net.splitcells.network.worker/repos/public/net.splitcells.network
40
+ bin/worker.bootstrap
41
41
bin/worker.repos.pull
42
- cd /workspace/splitcells- net/net.splitcells.network.bom.base
42
+ cd ~/.local/state/ net.splitcells.network.worker/repos/public /net.splitcells.network.bom.base
43
43
mvn clean install
44
- cd /workspace/splitcells- net/net.splitcells.network.bom
44
+ cd ~/.local/state/ net.splitcells.network.worker/repos/public /net.splitcells.network.bom
45
45
mvn clean install
46
- cd /workspace/splitcells- net/net.splitcells.network.hub
46
+ cd ~/.local/state/ net.splitcells.network.worker/repos/public /net.splitcells.network.hub
47
47
mvn -B clean install # Sonarcloud integration does not work here, as only the `net.splitcells.network` repo is known there.
48
48
mvn -B clean install -Dtest.groups=testing_integration -DexcludedGroups="experimental_test"
49
49
bash -c 'bash <(curl -s https://codecov.io/bash)' # Upload tests to codecov.io. As the default shell is sh, a bash wrapping is used.
50
- # Setup shell project.
51
- cd /workspace/splitcells-net/net.splitcells.network/projects/net.splitcells.shell
52
- ./bin/install
53
- # Setup command repositories.
54
- cd /workspace/splitcells-net/net.splitcells.network
55
- . ~/bin/net.splitcells.shell.commands.managed/command.managed.export.bin
56
- command.repository.register $(realpath ../net.splitcells.shell.lib.gpl.v2)
57
- command.repository.register $(realpath ../net.splitcells.shell.lib.gpl.v3)
58
- user.bin.configure
59
50
# Check repos.
60
- cd /workspace/splitcells- net/net.splitcells.network
51
+ cd ~/.local/state/ net.splitcells.network.worker/repos/public /net.splitcells.network
61
52
bin/repos.license.check
0 commit comments