Add copilot support
This commit is contained in:
parent
814780d55f
commit
86a995591a
6
.github/copilot-instructions.md
vendored
Normal file
6
.github/copilot-instructions.md
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
We use Java 21 (eclipse-temurin:21-jdk-jammy) to build the app via gradle.
|
||||
|
||||
Only use the "debug" flavor of the app when you make builds.
|
||||
You cannot build "release" as the signing keys are not part of the repository.
|
||||
|
||||
Do not try to upgrade the kotlin version in "gradle/libs.versions.toml", it will throw a lot of warnings and errors.
|
||||
4
.github/copilot/environment.txt
vendored
Normal file
4
.github/copilot/environment.txt
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
https://github.com/Catfriend1/syncthing-android/settings/environments
|
||||
copilot
|
||||
COPILOT_AGENT_FIREWALL_ALLOW_LIST_ADDITIONS
|
||||
dl.google.com,maven.org,jitpack.io,repo.gradle.org,services.gradle.org
|
||||
36
.github/workflows/copilot-setup-steps.yml
vendored
Normal file
36
.github/workflows/copilot-setup-steps.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
name: "Copilot Setup Steps"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
paths:
|
||||
- .github/workflows/copilot-setup-steps.yml
|
||||
pull_request:
|
||||
paths:
|
||||
- .github/workflows/copilot-setup-steps.yml
|
||||
|
||||
jobs:
|
||||
copilot-setup-steps:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Java 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '21'
|
||||
|
||||
- name: Cache Gradle packages
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
Loading…
Reference in New Issue
Block a user