X Tutup
Skip to content

Commit 4693507

Browse files
author
Johan Brichau
committed
update github CI with run-caching and remove travis-ci
1 parent 038010e commit 4693507

File tree

2 files changed

+29
-46
lines changed

2 files changed

+29
-46
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,45 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
smalltalk: [ Pharo64-9.0, Pharo64-8.0, Pharo64-7.0, Pharo-6.1, GemStone64-3.6.0, GemStone64-3.5.5, GemStone64-3.4.5, GemStone64-3.3.9, GemStone64-3.2.17, GemStone64-3.1.0.6, Squeak64-5.3, Squeak64-5.2, Squeak64-5.1 ]
11+
smalltalk: [ Pharo64-9.0, Pharo64-8.0, Pharo64-7.0, Pharo-6.1, GemStone64-3.6.1, GemStone64-3.5.5, GemStone64-3.4.5, GemStone64-3.3.9, GemStone64-3.2.17, GemStone64-3.1.0.6, Squeak64-5.3, Squeak64-5.2, Squeak64-5.1 ]
1212
experimental: [ false ]
1313
include:
1414
- smalltalk: Squeak64-trunk
1515
experimental: true
1616
continue-on-error: ${{ matrix.experimental }}
1717
name: ${{ matrix.smalltalk }}
1818
steps:
19+
- name: Get current date
20+
id: date
21+
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H:%M:%S')"
22+
- name: Log date
23+
run: echo "${{ steps.date.outputs.date }}"
24+
- name: Set default run status
25+
run: echo "::set-output name=last_run_status::default" > last_run_status
26+
- name: Restore last run status
27+
id: last_run
28+
uses: actions/cache@v2
29+
with:
30+
path: |
31+
last_run_status
32+
key: ${{ github.run_id }}-${{ matrix.smalltalk }}-${{ steps.date.outputs.date }}
33+
restore-keys: |
34+
${{ github.run_id }}-${{ matrix.smalltalk }}-
35+
- name: Set last run status
36+
id: last_run_status
37+
run: cat last_run_status
1938
- uses: actions/checkout@v2
39+
with:
40+
ref: ${{ github.event.workflow_dispatch.ref }}
2041
- uses: hpi-swa/setup-smalltalkCI@v1
2142
with:
22-
smalltalk-image: ${{ matrix.smalltalk }}
23-
# - name: Fix missing OS prerequisites for GemStone builds
24-
# run: |
25-
# git clone https://github.com/GsDevKit/GsDevKit_home.git
26-
# ./GsDevKit_home/bin/utils/installOsPrereqs
27-
# continue-on-error: true
28-
# if: startsWith(matrix.smalltalk,'GemStone')
43+
smalltalk-version: ${{ matrix.smalltalk }}
2944
- name: Run tests
45+
id: test_run
46+
if: steps.last_run_status.outputs.last_run_status != 'success'
3047
run: smalltalkci -s ${{ matrix.smalltalk }}
3148
shell: bash
32-
timeout-minutes: 10
49+
timeout-minutes: 20
50+
- name: Save run status
51+
if: steps.last_run_status.outputs.last_run_status != 'success'
52+
run: echo "::set-output name=last_run_status::${{ steps.test_run.outcome }}" > last_run_status

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)
X Tutup