Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiinaSekiu committed Jun 29, 2024
0 parents commit cc92d22
Show file tree
Hide file tree
Showing 10,576 changed files with 8,624 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
126 changes: 126 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
name: Build
on:
workflow_dispatch:
push:
branches: [ main ]
tags: [ v* ]
pull_request:
branches: [ main ]
jobs:
build-with-zulu:
name: ${{ matrix.os }}(${{ matrix.type }}) ${{ matrix.arch }} with Auzl Zulu
runs-on: ${{ matrix.label }}
strategy:
fail-fast: false
matrix:
include:
- { label: windows-latest, os: Windows, arch: x86_64, type: msi }
- { label: macos-13, os: macOS, arch: x86_64, type: dmg }
- { label: macos-13, os: macOS, arch: x86_64, type: pkg }
- { label: macos-latest, os: macOS, arch: aarch64, type: dmg }
- { label: macos-latest, os: macOS, arch: aarch64, type: pkg }
steps:
- name: Checkout MiniLPA
uses: actions/checkout@v4

- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 21

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build Native Executable
shell: pwsh
run: |
./scripts/Build.ps1 -NativeExecutable -NativeExecutableType ${{ matrix.type }}
- name: Get Short Commit Id
shell: pwsh
run: |
"SHORT_COMMIT_ID=$($Env:GITHUB_SHA.Substring(0, 7))" | Out-File -FilePath $Env:GITHUB_ENV -Append
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: MiniLPA-${{ env.SHORT_COMMIT_ID }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.type }}
path: |
build/dist/
build-with-jbr:
name: ${{ matrix.os }}(${{ matrix.type }}) ${{ matrix.arch }} ${{ matrix.wayland && 'Wayland' || '' }} with JetBrains Runtime
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
type: [ deb, rpm ]
wayland: [ true, false ]
include:
- os: Linux
- arch: x86_64
steps:
- name: Checkout MiniLPA
uses: actions/checkout@v4

- name: Checkout JetBrains Setup
uses: actions/checkout@v4
with:
repository: ShiinaSekiu/github-actions-jbr-setup
ref: jdk
path: .github/shared_actions/jbr

- name: Install JetBrains Runtime
uses: ./.github/shared_actions/jbr/setup_jbr21

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build Native Executable
shell: pwsh
run: |
./scripts/Build.ps1 -NativeExecutable -NativeExecutableType ${{ matrix.type }} -NativeWayland:$${{ matrix.wayland }} -GithubToken ${{ secrets.GH_TOKEN }}
- name: Get Short Commit Id
shell: pwsh
run: |
"SHORT_COMMIT_ID=$($Env:GITHUB_SHA.Substring(0, 7))" | Out-File -FilePath $Env:GITHUB_ENV -Append
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: MiniLPA-${{ env.SHORT_COMMIT_ID }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.type }}${{ matrix.wayland && '-Wayland' || '' }}
path: |
build/dist/
release:
name: Release
runs-on: macos-latest
needs: [ build-with-zulu, build-with-jbr ]
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
merge-multiple: true

- name: Get Artifact SHA256
id: artifact-hash
shell: pwsh
run: |
'sha256<<EOF' | Out-File -Path $Env:GITHUB_OUTPUT -Append
Get-ChildItem | ForEach-Object { (Get-FileHash $_.FullName -Algorithm SHA256).Hash + ' ' + $_.Name | Out-File -Path $Env:GITHUB_OUTPUT -Append }
'EOF' | Out-File -Path $Env:GITHUB_OUTPUT -Append
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
append_body: true
body: |
## Artifacts SHA256 Hashes
```
${{ steps.artifact-hash.outputs.sha256 }}
```
files: '*'
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/.idea/
/logs/
/languages
/setting.yaml

/windows_x86/
/windows_aarch64/
/linux_x86/
/macos_univeral/

.DS_Store
.gradle
build
eum-manifest.json
ci-manifest.json
Loading

0 comments on commit cc92d22

Please sign in to comment.