Skip to content

Commit

Permalink
Change runner location, and more
Browse files Browse the repository at this point in the history
  • Loading branch information
sounddrill31 authored Mar 15, 2024
1 parent f068c3a commit dec20a4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
jobs:
test:
name: Build LineageOS 21 using foss.crave.io
name: Build LineageOS using foss.crave.io

runs-on: self-hosted

Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/setup-runner.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#Needs to be run once only!
name: Needs to be run once only! Running again leads to reset
name: Setup Runner

on:
workflow_dispatch:
inputs:
GITHUB_REPO:
description: 'Repository'
default: 'a57y17lte-dev/lineage_builder'
default: 'lion-development/lineage_builder'
required: true
RUNNER_TOKEN:
description: 'This is the runner token, not PAT'
Expand Down Expand Up @@ -43,13 +43,12 @@ jobs:

- name: Run crave devspace
run: |
crave devspace -- "rm -rf y17ltebuilds ~/actions-runner || true
curl https://raw.githubusercontent.com/sounddrill31/Install-GithubActions-Runner/a57y17lte-dev/fetch-latest-zip.sh | bash
cd y17ltebuilds
crave devspace -- "rm -rf lion-dev ~/actions-runner || true
curl https://raw.githubusercontent.com/sounddrill31/Install-GithubActions-Runner/lion-dev/fetch-latest-zip.sh | bash
cd lion-dev
if [[ "${{ inputs.RUNNER_TOKEN }}" == "github_pat_*" ]]; then
echo "PAT does not work!"
else
echo "Runner token found"
fi
cd y17ltebuilds
./config.sh --unattended --url "https://github.com/${{ inputs.GITHUB_REPO }}" --token "${{ inputs.RUNNER_TOKEN }}""
10 changes: 5 additions & 5 deletions .github/workflows/start-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:

- name: Run crave devspace
run: |
crave devspace -- "if tmux has-session -t y17ltebuilds; then
tmux kill-session -t y17ltebuilds;
crave devspace -- "if tmux has-session -t lion-dev; then
tmux kill-session -t lion-dev;
else
tmux kill-session -t y17ltebuilds || true
tmux new-session -d -s y17ltebuilds
tmux send-keys -t y17ltebuilds './y17ltebuilds/run.sh' Enter
tmux kill-session -t lion-dev || true
tmux new-session -d -s lion-dev
tmux send-keys -t lion-dev './lion-dev/run.sh' Enter
echo "Runner Started"
fi
rm -rf /crave-devspaces/.repo || true"

0 comments on commit dec20a4

Please sign in to comment.