Skip to content

Commit 5e1a8cb

Browse files
committed
Update compile.yml
1 parent 828404d commit 5e1a8cb

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

.github/workflows/compile.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,14 @@ jobs:
88
draft_release:
99
name: Create draft release
1010
runs-on: ubuntu-latest
11-
1211
outputs:
1312
release_id: ${{ steps.create_draft_release.outputs.id }}
1413
upload_url: ${{ steps.create_draft_release.outputs.upload_url }}
15-
1614
steps:
1715
- name: Get version from tag
1816
id: tag_name
1917
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
20-
2118
- uses: actions/checkout@v2
22-
23-
- name: Get Changelog Entry
24-
id: changelog_reader
25-
uses: mindsers/changelog-reader-action@v2
26-
with:
27-
version: ${{ env.RELEASE_VERSION }}
28-
path: ./CHANGELOG.md
29-
3019
- name: Create draft release
3120
id: create_draft_release
3221
uses: actions/create-release@v1
@@ -38,12 +27,10 @@ jobs:
3827
draft: true
3928
prerelease: ${{ steps.changelog_reader.outputs.status == 'prereleased' }}
4029
body: ${{ steps.changelog_reader.outputs.changes }}
41-
4230
- name: ZIP uncompiled universalJavaApplicationStub
4331
run: |
4432
echo "Zipping uncompiled script..."
4533
zip --junk-paths universalJavaApplicationStub-uncompiled.zip src/universalJavaApplicationStub
46-
4734
- name: Upload release assets
4835
uses: actions/upload-release-asset@v1
4936
env:
@@ -54,38 +41,31 @@ jobs:
5441
asset_path: ./universalJavaApplicationStub-uncompiled.zip
5542
asset_content_type: application/zip
5643

57-
5844
compile:
5945
name: Compile the stub on ${{ matrix.os }}
6046
needs: draft_release # we need to know the upload URL
6147
runs-on: ${{ matrix.os }}
6248
strategy:
6349
matrix:
6450
os: [ macos-10.15 ] # macos-11.0
65-
6651
steps:
6752
- uses: actions/checkout@v2
68-
6953
- name: Set env
7054
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
71-
7255
- name: Install shc via HomeBrew
7356
run: |
7457
brew install shc
7558
shc -h
76-
7759
- name: Compile universalJavaApplicationStub
7860
run: |
7961
echo "Running shc..."
8062
shc -r -f src/universalJavaApplicationStub
81-
8263
- name: ZIP universalJavaApplicationStub binary
8364
run: |
8465
echo "Zipping binary..."
8566
mv src/universalJavaApplicationStub.x universalJavaApplicationStub
8667
rm src/universalJavaApplicationStub.x.c
8768
zip --junk-paths universalJavaApplicationStub-${{ matrix.os }}.zip universalJavaApplicationStub
88-
8969
- name: Upload release assets
9070
uses: actions/upload-release-asset@v1
9171
env:
@@ -96,12 +76,10 @@ jobs:
9676
asset_path: ./universalJavaApplicationStub-${{ matrix.os }}.zip
9777
asset_content_type: application/zip
9878

99-
10079
publish_release:
10180
name: Publish drafted release
10281
needs: [ draft_release, compile ]
10382
runs-on: ubuntu-latest
104-
10583
steps:
10684
- uses: eregon/publish-release@v1
10785
env:

0 commit comments

Comments
 (0)