From 50d19326df8e69edf0620aa48c7ff253f9e9b744 Mon Sep 17 00:00:00 2001 From: Pierre Laborde <49183340+labordep@users.noreply.github.com> Date: Sun, 7 May 2023 16:15:40 +0200 Subject: [PATCH] Create continuous.yml --- .github/workflows/continuous.yml | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/continuous.yml diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml new file mode 100644 index 00000000..72bb7044 --- /dev/null +++ b/.github/workflows/continuous.yml @@ -0,0 +1,44 @@ +name: continuous + +on: + push: + branches: + - 'master' + +jobs: + build: + env: + PROJECT_NAME: Molecule-${{ matrix.smalltalk }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + strategy: + matrix: + os: [ ubuntu-latest, macos-latest, windows-latest ] + smalltalk: [ Pharo64-11 ] + runs-on: ${{ matrix.os }} + name: ${{ matrix.smalltalk }} on ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: hpi-swa/setup-smalltalkCI@v1 + with: + smalltalk-version: ${{ matrix.smalltalk }} + - run: smalltalkci -s ${{ matrix.smalltalk }} + shell: bash + timeout-minutes: 15 + + # Here we zip the result of the build to be able to keep the artefacts + - name: package + run: | + mv /home/runner/.smalltalkCI/_builds/* . + mv TravisCI.image $PROJECT_NAME.image + mv TravisCI.changes $PROJECT_NAME.changes + echo ${${{ matrix.smalltalk }}} | sed -e 's/.*\-//g ; s/\..*//g ; s/$/0/' > pharo.version + zip -r $PROJECT_NAME.zip $PROJECT_NAME.image $PROJECT_NAME.changes *.sources pharo.version + ls + + #Save the artefact of the build under "continuous" tag + - name: Update release + uses: johnwbyrd/update-release@v1.0.0 + with: + release: 'Continuous Release' + token: ${{ secrets.GITHUB_TOKEN }} + files: ${{ env.PROJECT_NAME }}.zip