Skip to content

Commit

Permalink
Trying to do simple releases
Browse files Browse the repository at this point in the history
  • Loading branch information
machaval committed Nov 24, 2021
1 parent 22aa7c7 commit 84457a6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
pull_request:
branches: [ master ]
env:
NATIVE_VERSION: 1.0.10
NATIVE_VERSION: 100.100.100
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_KEY: ${{secrets.AWS_SECRET_KEY}}
- name: Upload to S3
- name: Generate Distro
run: |
./gradlew --stacktrace native-cli:distro
env:
Expand Down
41 changes: 14 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,18 @@ on:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
env:
NATIVE_VERSION: 1.0.9

jobs:

# This workflow contains a single job called "build"
RELEASE_EXTENSION:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
# os: [macos-latest, ubuntu-latest]
# os: [macos-latest, ubuntu-latest, windows-latest]
os: [macos-latest, ubuntu-latest]
include:
- os: windows-2019
script_name: windows
# - os: windows-2019
# script_name: windows
- os: ubuntu-latest
script_name: linux
- os: macos-latest
Expand All @@ -35,33 +32,23 @@ jobs:
with:
java-version: 11

- name: Guess Extension Version
run: |
echo "NATIVE_VERSION=$(echo '${{github.ref}}' | sed -e 's,.*/v\(.*\),\1,')" >> $GITHUB_ENV
# Runs a single command using the runners shell
- name: Run Build on native
run: |
if [ "$RUNNER_OS" == 'Windows' ]; then
./gradlew native-cli:build -PgraalvmVersion=20.2.0
else
./gradlew native-cli:build
fi
run: ./gradlew native-cli:build -PnativeVersion=${{env.NATIVE_VERSION}}
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_KEY: ${{secrets.AWS_SECRET_KEY}}

# Runs a set of commands using the runners shell
- name: Create Native Image
run: |
if [ "$RUNNER_OS" == 'Windows' ]; then
./gradlew native-cli:nativeImage -PgraalvmVersion=20.2.0
./gradlew native-cli:distro
else
./gradlew native-cli:nativeImage
./gradlew native-cli:distro
fi
run: ./gradlew native-cli:nativeImage -PnativeVersion=${{env.NATIVE_VERSION}}
shell: bash

- name: Create Distro
run: ./gradlew native-cli:distro -PnativeVersion=${{env.NATIVE_VERSION}}
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_KEY: ${{secrets.AWS_SECRET_KEY}}

# Upload the artifact file
- name: Upload binaries to release
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
weaveVersion=2.5.0-SNAPSHOT
nativeVersion=1.0.10
nativeVersion=100.100.100
scalaVersion=2.12.11
ioVersion=0.4.0
graalvmVersion=21.3.0
Expand Down

0 comments on commit 84457a6

Please sign in to comment.