forked from Zoxcore/trifa_material
-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (53 loc) · 1.55 KB
/
build_without_gitrepo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build without git repo
on:
push:
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- '.github/workflows/macos_pkg.yml'
pull_request:
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- '.github/workflows/macos_pkg.yml'
workflow_dispatch:
inputs:
version:
description: dummy
default: dummy
defaults:
run:
shell: bash
jobs:
build-linux-without-gitrepo:
name: Nightly Linux Build without git repo
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: |
sudo apt-get update && \
sudo DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
ca-certificates \
rpm \
openjdk-17-jdk \
openjdk-17-jdk-headless
- name: show java version
run: type -a java;java -version
- name: set java version
run: sudo update-java-alternatives -s java-1.17.0-openjdk-amd64
- name: show java version
run: type -a java;java -version
- name: remove git repo
run: ls -al ; rm -Rf .git/ ; ls -al
# - name: build workaround
# run: git init
- name: remove git command
run: |
sudo DEBIAN_FRONTEND=noninteractive \
apt-get remove -y git
- name: check for git command
run: type -a git || echo "git command removed"
- name: build package
run: id;pwd;ls -al;./gradlew -Dorg.gradle.java.home=/usr/lib/jvm/java-17-openjdk-amd64 -x detekt build