Skip to content

Commit

Permalink
pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mattonem committed Oct 2, 2024
1 parent a07545d commit 3562469
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# This is a basic workflow to help you get started with Actions

name: CI

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

# 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: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- uses: hpi-swa/setup-smalltalkCI@v1
id: smalltalkci

with:
smalltalk-image: 'Pharo64-12'
- run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-image }}
shell: bash
timeout-minutes: 15
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: build
# A file, directory or wildcard pattern that describes what to upload
path: build
# The desired behavior if no files are found using the provided path.
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
# Path of the directory containing the static assets.
path: build
# Duration after which artifact will expire in days.
retention-days: 1
deploy:
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
19 changes: 19 additions & 0 deletions .smalltalk.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'DiamondSquare',
#directory : 'src',
#platforms : [ #pharo ]
}
],
#postLoading : [
'scripts/exportApp.st'
],
#testing : {
#failOnZeroTests : false,
#categories : [ 'DiamondSquare-Tests' ],
#coverage : {
#packages : [ 'DiamondSquare' ]
}
}
}
10 changes: 10 additions & 0 deletions scripts/exportApp.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
|newRepository|
Smalltalk vm maxExternalSemaphoresSilently: 1000.
newRepository := IceRepositoryCreator new
repository: nil;
location: '.' asFileReference ;
createRepository .
newRepository register.

DiamondSquareApp appFolder: './build' asFileLocatorOrReference ensureCreateDirectory.
DiamondSquareApp exportApp.

0 comments on commit 3562469

Please sign in to comment.