forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Build slim packages | ||
|
||
# This workflow runs when any of the following occur: | ||
# - Run manually | ||
on: | ||
workflow_dispatch: | ||
|
||
|
||
# Used to run locally using https://github.com/nektos/act | ||
env: | ||
ACT: | ||
VERSION: 2.11.0 | ||
SNAPSHOT: false | ||
PLATFORM: linux | ||
BUILD: bash scripts/build.sh | ||
PACKAGE_NAME: | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
# Permissions to upload the package | ||
permissions: | ||
packages: write | ||
contents: read | ||
strategy: | ||
matrix: | ||
# For act: | ||
# DISTRIBUTION: [ rpm ] | ||
# ARCHITECTURE: [ x64 ] | ||
DISTRIBUTION: [ tar, rpm, deb ] | ||
ARCHITECTURE: [ x64, arm64 ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
|
||
- name: Execute build script | ||
run: | | ||
$BUILD -v $VERSION -s $SNAPSHOT -p $PLATFORM -a ${{ matrix.ARCHITECTURE }} -d ${{ matrix.DISTRIBUTION }} | ||
# The package name is stored in the artifacts/artifact_name.txt file | ||
- name: Read package name | ||
id: package_name | ||
run: | | ||
echo $(ls -la) | ||
echo "package_name=$(cat artifacts/artifact_name.txt)" >> $GITHUB_OUTPUT | ||
echo "$(cat artifacts/artifact_name.txt)" | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ steps.package_name.outputs.package_name }} | ||
path: artifacts/dist/${{ steps.package_name.outputs.package_name }} | ||
if-no-files-found: error | ||
|
||
# assemble: | ||
# release: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters