-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (42 loc) · 1.54 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: testAndBuild
on: [push, pull_request]
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Select platform(s)
os: [ ubuntu-latest, windows-latest ]
# Select compatible Smalltalk image(s)
smalltalk: [ Squeak64-6.0 ]
name: ${{ matrix.smalltalk }} on ${{ matrix.os }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: smalltalkci -s ${{ matrix.smalltalk }}
timeout-minutes: 15
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: ./scripts/build_image.sh
if: matrix.os == 'ubuntu-latest' && (github.ref == 'refs/heads/main')
shell: bash
- name: Upload Image
uses: actions/upload-artifact@v2
if: matrix.os == 'ubuntu-latest' && (github.ref == 'refs/heads/main')
with:
name: Babylonian-6.0.zip
path: ./deploy/Babylonian-6.0.zip
- name: Upload Image
uses: actions/upload-artifact@v2
if: matrix.os == 'ubuntu-latest' && (github.ref == 'refs/heads/main')
with:
name: screenshot
path: ./deploy/screenshot-for-readme.png