Skip to content

Commit

Permalink
Merge branch 'main' into code-execution
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlDuda committed Jun 23, 2024
2 parents 1826e71 + 6768d25 commit cd62e53
Show file tree
Hide file tree
Showing 42 changed files with 2,267 additions and 895 deletions.
2 changes: 2 additions & 0 deletions .filetree
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"propertyFileExtension" : ".json",
"packageExtension" : ".package" }
63 changes: 63 additions & 0 deletions .github/workflows/automatic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Automatic Releases

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Select platform(s)
os:
- ubuntu-latest
# Select compatible Smalltalk image(s)
smalltalk: [ Squeak64-6.0 ]

name: ${{ matrix.smalltalk }} on ${{ matrix.os }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}

- run: smalltalkci -s ${{ matrix.smalltalk }}
shell: bash
timeout-minutes: 15
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: pre-${{ github.run_number }}
release_name: pre-${{ github.run_number }}
draft: false
prerelease: true

# - name: Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: /home/runner/.smalltalkCI/_builds/SqueakKara.sar
# asset_name: SqueakKara.sar
# asset_content_type: application/zip
39 changes: 39 additions & 0 deletions .github/workflows/automatic-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Automatic Testing

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Select platform(s)
os:
- ubuntu-latest
# Select compatible Smalltalk image(s)
smalltalk: [ Squeak64-6.0 ]

name: ${{ matrix.smalltalk }} on ${{ matrix.os }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}
- run: smalltalkci -s ${{ matrix.smalltalk }}
shell: bash
timeout-minutes: 15
env:
# for uploading coverage reports
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .smalltalk.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'SqueakKara',
#directory : 'src',
#platforms : [#squeak],
#load : ['tests']
}
],
#testing : {
#packages : ['SqueakKara-Tests']
}
}
14 changes: 13 additions & 1 deletion .squot-materialize
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
[
SquotTonelMapper {
#package : MCPackage {
#name : 'SqueakKara'
#name : 'BaselineOfSqueakKara'
},
#path : FSAbsolutePath [
'src'
]
},
SquotTonelMapper {
#package : MCPackage {
#name : 'SqueakKara-Core'
},
#path : @4
},
SquotTonelMapper {
#package : MCPackage {
#name : 'SqueakKara-Tests'
},
#path : @4
},
SquotImageMapper {
#path : FSAbsolutePath [
'assets',
Expand Down
Binary file modified assets/Cloverleaf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/Kara-FacingLeft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/Kara-FacingUp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/Trunk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
#format : #tonel
}
34 changes: 34 additions & 0 deletions src/BaselineOfSqueakKara/BaselineOfSqueakKara.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Class {
#name : #BaselineOfSqueakKara,
#superclass : #BaselineOf,
#category : #BaselineOfSqueakKara
}

{
#category : #baseline,
#'squeak_changestamp' : 'LK 6/12/2024 18:47'
}
BaselineOfSqueakKara >> baseline: spec [
<baseline>
spec
for: #'common'
do: [
spec
baseline: 'Squot' with: [
spec repository: 'github://hpi-swa/Squot:mapper/src'. ].
spec
package: 'SqueakKara-Core' with: [spec requires: #('Squot'); postLoadDoIt: #postLoad];
package: 'SqueakKara-Tests' with: [spec requires: #('default')];
yourself.
spec
group: 'default' with: #('SqueakKara-Core');
group: 'tests' with: #('SqueakKara-Tests');
yourself].
]

{
#category : #baseline,
#'squeak_changestamp' : 'LK 6/14/2024 19:08'
}
BaselineOfSqueakKara >> postLoad [
]
4 changes: 4 additions & 0 deletions src/BaselineOfSqueakKara/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Package {
#name : #BaselineOfSqueakKara,
#'squeak_changestamp' : true
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #SKCloverleaf,
#superclass : #SKGridObject,
#category : #SqueakKara
#category : #'SqueakKara-Core'
}

{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #SKDirection,
#superclass : #Object,
#category : #SqueakKara
#category : #'SqueakKara-Core'
}

{
Expand Down
Loading

0 comments on commit cd62e53

Please sign in to comment.