-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
ad91b2d
commit a90425a
Showing
5 changed files
with
141 additions
and
69 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
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
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
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 |
---|---|---|
|
@@ -26,38 +26,37 @@ env: | |
VERSION: 'nightly' | ||
cache-name: zip-cache | ||
RUN_ID: ${{ github.run_id }} | ||
PHARO_VERSION: 11 | ||
|
||
jobs: | ||
|
||
build-linux: | ||
runs-on: ubuntu-latest | ||
build-win: | ||
runs-on: windows-latest | ||
env: | ||
PLATFORM: linux | ||
name: 'Build Linux' | ||
PLATFORM: win | ||
name: 'Build Windows' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
- name: Load SmalltalkCI environment | ||
uses: hpi-swa/[email protected] | ||
id: smalltalkci | ||
with: | ||
smalltalk-image: Pharo64-11 | ||
smalltalk-image: Pharo64-${{ env.PHARO_VERSION }} | ||
- name: Prepare scripts directory | ||
run: mkdir -p .github/scripts | ||
run: md -Force .github/scripts | ||
- name: Download Pharo preLoad script | ||
run: curl -o .github/scripts/preLoad.st https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/preLoad.st | ||
- name: Download Pharo postLoad script | ||
run: curl -o .github/scripts/postLoad.st https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/postLoad.st | ||
- name: Download zip script | ||
run: curl -o .github/scripts/build-linux.sh https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/build-linux.sh | ||
- name: Prepare image and test | ||
run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-image }} | ||
shell: bash | ||
timeout-minutes: 12 | ||
- name: Prepare zip script | ||
run: chmod u+x .github/scripts/build-linux.sh | ||
timeout-minutes: 20 | ||
- name: Download zip script | ||
run: curl -o .github/scripts/build-win.ps1 https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/build-win.ps1 | ||
- name: Create zip | ||
run: .github/scripts/build-linux.sh | ||
run: .github/scripts/build-win.ps1 | ||
env: | ||
ACTIONS_READ_ACCESS_TOKEN: ${{ secrets.ACTIONS_READ_ACCESS_TOKEN }} | ||
- name: Cache zip | ||
|
@@ -66,35 +65,35 @@ jobs: | |
path: ${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
key: ${{ github.run_id }}-${{ github.run_number }}_${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
|
||
build-mac: | ||
runs-on: macos-latest | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
env: | ||
PLATFORM: mac | ||
name: 'Build Mac' | ||
PLATFORM: linux | ||
name: 'Build Linux' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
- name: Load SmalltalkCI environment | ||
uses: hpi-swa/[email protected] | ||
id: smalltalkci | ||
with: | ||
smalltalk-image: Pharo64-11 | ||
smalltalk-image: Pharo64-${{ env.PHARO_VERSION }} | ||
- name: Prepare scripts directory | ||
run: mkdir -p .github/scripts | ||
- name: Download Pharo preLoad script | ||
run: curl -o .github/scripts/preLoad.st https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/preLoad.st | ||
- name: Download Pharo postLoad script | ||
run: curl -o .github/scripts/postLoad.st https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/postLoad.st | ||
- name: Download zip script | ||
run: curl -o .github/scripts/build-linux.sh https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/build-linux.sh | ||
- name: Prepare image and test | ||
run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-image }} | ||
shell: bash | ||
timeout-minutes: 12 | ||
- name: Download zip script | ||
run: curl -o .github/scripts/build-mac.sh https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/build-mac.sh | ||
- name: Prepare zip script | ||
run: chmod u+x .github/scripts/build-mac.sh | ||
run: chmod u+x .github/scripts/build-linux.sh | ||
- name: Create zip | ||
run: .github/scripts/build-mac.sh | ||
run: .github/scripts/build-linux.sh | ||
env: | ||
ACTIONS_READ_ACCESS_TOKEN: ${{ secrets.ACTIONS_READ_ACCESS_TOKEN }} | ||
- name: Cache zip | ||
|
@@ -103,40 +102,47 @@ jobs: | |
path: ${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
key: ${{ github.run_id }}-${{ github.run_number }}_${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
|
||
build-win: | ||
runs-on: windows-latest | ||
build-mac: | ||
runs-on: macos-latest | ||
env: | ||
PLATFORM: win | ||
name: 'Build Windows' | ||
PLATFORM: mac | ||
name: 'Build Mac' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
- name: Load SmalltalkCI environment | ||
uses: hpi-swa/[email protected] | ||
id: smalltalkci | ||
with: | ||
smalltalk-image: Pharo64-11 | ||
smalltalk-image: Pharo64-${{ env.PHARO_VERSION }} | ||
- name: Prepare scripts directory | ||
run: md -Force .github/scripts | ||
run: mkdir -p .github/scripts | ||
- name: Download Pharo preLoad script | ||
run: curl -o .github/scripts/preLoad.st https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/preLoad.st | ||
- name: Download Pharo postLoad script | ||
run: curl -o .github/scripts/postLoad.st https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/postLoad.st | ||
- name: Prepare image and test | ||
run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-image }} | ||
shell: bash | ||
timeout-minutes: 20 | ||
timeout-minutes: 12 | ||
- name: Download zip script | ||
run: curl -o .github/scripts/build-win.ps1 https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/build-win.ps1 | ||
run: curl -o .github/scripts/build-mac.sh https://raw.githubusercontent.com/openponk/plugins/master/.github/scripts/build-mac.sh | ||
- name: Prepare zip script | ||
run: chmod u+x .github/scripts/build-mac.sh | ||
- name: Create zip | ||
run: .github/scripts/build-win.ps1 | ||
run: .github/scripts/build-mac.sh | ||
env: | ||
ACTIONS_READ_ACCESS_TOKEN: ${{ secrets.ACTIONS_READ_ACCESS_TOKEN }} | ||
- name: Cache zip | ||
- name: Cache Intel zip | ||
uses: actions/cache/[email protected] | ||
with: | ||
path: ${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
key: ${{ github.run_id }}-${{ github.run_number }}_${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
- name: Cache ARM zip | ||
uses: actions/cache/[email protected] | ||
with: | ||
path: ${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-ARM-${{ env.VERSION }}.zip | ||
key: ${{ github.run_id }}-${{ github.run_number }}_${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-ARM-${{ env.VERSION }}.zip | ||
|
||
check-linux-cache: | ||
needs: build-linux | ||
|
@@ -155,10 +161,10 @@ jobs: | |
if: steps.get-zip.outputs.cache-hit != 'true' | ||
run: exit 1 | ||
|
||
check-mac-cache: | ||
check-mac-intel-cache: | ||
needs: build-mac | ||
runs-on: macos-latest | ||
name: 'Check Mac zip is created' | ||
name: 'Check Mac Intel zip is created' | ||
env: | ||
PLATFORM: mac | ||
steps: | ||
|
@@ -172,6 +178,23 @@ jobs: | |
if: steps.get-zip.outputs.cache-hit != 'true' | ||
run: exit 1 | ||
|
||
check-mac-arm-cache: | ||
needs: build-mac | ||
runs-on: macos-latest | ||
name: 'Check Mac ARM zip is created' | ||
env: | ||
PLATFORM: mac-ARM | ||
steps: | ||
- name: Get zip from cache | ||
id: get-zip | ||
uses: actions/cache/[email protected] | ||
with: | ||
path: ${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
key: ${{ github.run_id }}-${{ github.run_number }}_${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
- name: Fail on cache miss | ||
if: steps.get-zip.outputs.cache-hit != 'true' | ||
run: exit 1 | ||
|
||
check-win-cache: | ||
needs: build-win | ||
runs-on: windows-latest | ||
|
@@ -191,7 +214,7 @@ jobs: | |
|
||
|
||
save-stats: | ||
needs: [check-linux-cache, check-mac-cache, check-win-cache] | ||
needs: [check-win-cache, check-linux-cache, check-mac-intel-cache, check-mac-arm-cache] | ||
runs-on: ubuntu-latest | ||
name: 'Save dl stats of previous build' | ||
env: | ||
|
@@ -230,6 +253,33 @@ jobs: | |
prerelease: true | ||
title: "nightly" | ||
|
||
upload-win-zip: | ||
needs: create-release | ||
runs-on: windows-latest | ||
name: 'Upload Windows zip' | ||
env: | ||
PLATFORM: win | ||
steps: | ||
- name: Get zip from cache | ||
id: get-zip | ||
uses: actions/cache/[email protected] | ||
with: | ||
path: ${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
key: ${{ github.run_id }}-${{ github.run_number }}_${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
- name: Get Release by Tag | ||
id: get_release_by_tag | ||
uses: jonfriesen/[email protected] | ||
with: | ||
tag_name: nightly | ||
- name: Upload zip | ||
id: upload-zip | ||
uses: actions/[email protected] | ||
with: | ||
upload_url: ${{ steps.get_release_by_tag.outputs.upload_url }} | ||
asset_path: ./${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
asset_name: ${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
asset_content_type: application/zip | ||
|
||
upload-linux-zip: | ||
needs: create-release | ||
runs-on: ubuntu-latest | ||
|
@@ -257,10 +307,10 @@ jobs: | |
asset_name: ${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
asset_content_type: application/zip | ||
|
||
upload-mac-zip: | ||
upload-mac-intel-zip: | ||
needs: create-release | ||
runs-on: macos-latest | ||
name: 'Upload Mac zip' | ||
name: 'Upload Mac Intel zip' | ||
env: | ||
PLATFORM: mac | ||
steps: | ||
|
@@ -284,12 +334,12 @@ jobs: | |
asset_name: ${{ env.PROJECT_NAME }}-${{ env.PLATFORM }}-${{ env.VERSION }}.zip | ||
asset_content_type: application/zip | ||
|
||
upload-win-zip: | ||
upload-mac-arm-zip: | ||
needs: create-release | ||
runs-on: windows-latest | ||
name: 'Upload Windows zip' | ||
runs-on: macos-latest | ||
name: 'Upload Mac ARM zip' | ||
env: | ||
PLATFORM: win | ||
PLATFORM: mac-ARM | ||
steps: | ||
- name: Get zip from cache | ||
id: get-zip | ||
|
Oops, something went wrong.