Skip to content

Commit

Permalink
Uses fantasy-land from several other projects (#68)
Browse files Browse the repository at this point in the history
This replaces the event-driven architecture with a poll-driven architecture
  • Loading branch information
Mike Solomon authored Aug 24, 2023
1 parent 842ccbd commit be3ba98
Show file tree
Hide file tree
Showing 126 changed files with 6,094 additions and 5,373 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,20 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Spago install
run: npx spago -x test.dhall install
run: npx spago install
- name: Spago build
run: npx spago -x test.dhall build
- name: Spago build examples
run: npx spago -x examples.dhall build
#- name: Spago build cheatsheet
# run: npx spago -x cheatsheet.dhall build
#- name: Spago test
# run: npx spago -x test.dhall test
run: npx spago build
- name: Build qc
run: npx spago -x examples.dhall bundle-module --main Ocarina.Example.Docs --to examples/docs/index.js --minify
run: npx vite build
- name: Deploy
if: ${{ github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./examples/docs
# the new ocarina breaks the old ocarina, so we want the old assets to point to the new docs
# as much as possible
publish_dir: ./build
- name: deploy to netlify @ ocarina.fm
run: NETLIFY_SITE_ID=${{ secrets.NETLIFY_WAGS_FM_SITE_ID }} NETLIFY_AUTH_TOKEN=${{ secrets.NETLIFY_AUTH_TOKEN }} netlify deploy --dir=examples/docs --prod
run: NETLIFY_SITE_ID=${{ secrets.NETLIFY_WAGS_FM_SITE_ID }} NETLIFY_AUTH_TOKEN=${{ secrets.NETLIFY_AUTH_TOKEN }} netlify deploy --dir=build --prod
- name: deploy to netlify @ docs.ocarina.fm
run: NETLIFY_SITE_ID=${{ secrets.NETLIFY_WAGS_DOCS_SITE_ID }} NETLIFY_AUTH_TOKEN=${{ secrets.NETLIFY_AUTH_TOKEN }} netlify deploy --dir=examples/docs --prod
run: NETLIFY_SITE_ID=${{ secrets.NETLIFY_WAGS_DOCS_SITE_ID }} NETLIFY_AUTH_TOKEN=${{ secrets.NETLIFY_AUTH_TOKEN }} netlify deploy --dir=build --prod
- name: deploy to netlify @ whatis.ocarina.fm
run: NETLIFY_SITE_ID=${{ secrets.NETLIFY_WHAT_IS_WAGS_SITE_ID }} NETLIFY_AUTH_TOKEN=${{ secrets.NETLIFY_AUTH_TOKEN }} netlify deploy --dir=examples/docs --prod
run: NETLIFY_SITE_ID=${{ secrets.NETLIFY_WHAT_IS_WAGS_SITE_ID }} NETLIFY_AUTH_TOKEN=${{ secrets.NETLIFY_AUTH_TOKEN }} netlify deploy --dir=build --prod
12 changes: 2 additions & 10 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Spago install
run: npx spago -x test.dhall install
run: npx spago install
- name: Spago build
run: npx spago -x test.dhall build
- name: Spago build examples
run: npx spago -x examples.dhall build
#- name: Spago build cheatsheet
# run: npx spago -x cheatsheet.dhall build
#- name: Spago test
# run: npx spago -x test.dhall test
- name: Build qc
run: npx spago -x examples.dhall bundle-module --main Ocarina.Example.Docs --to examples/docs/index.js --minify
run: npx spago build
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Assets, environment and behaviors have been merged into just environment.
- Assets, environment and polls have been merged into just environment.

## [0.4.0] - 2021-09-01

Expand Down Expand Up @@ -382,7 +382,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Microphones, buffers, float arrays, wavetables and recorders are now behaviors instead of static objects. This means that it is possible to make and use new buffers mid-flight! Note that this is a _breaking change_, meaning that all microphones, buffers, float arrays, wavetables and recorders will need to become behaviors. This can be done by prepending existing ones with `pure`.
- Microphones, buffers, float arrays, wavetables and recorders are now polls instead of static objects. This means that it is possible to make and use new buffers mid-flight! Note that this is a _breaking change_, meaning that all microphones, buffers, float arrays, wavetables and recorders will need to become polls. This can be done by prepending existing ones with `pure`.
- The `active` field no longer exists on `BehavingScene`. Instead, the event is a `Maybe`, with `Nothing` representing an inactive state. This is also a _breaking change_.

## [0.3.5] - 2021-06-28
Expand Down Expand Up @@ -546,7 +546,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Exposes the WebAudio API via a FRP Behavior by using induction on existentially-quantified and linearly-typed indexed cofree comonads.
- Exposes the WebAudio API via a FRP Poll by using induction on existentially-quantified and linearly-typed indexed cofree comonads.
- A README.
- A CHANGELOG.
- Several tests.
Expand Down
32 changes: 0 additions & 32 deletions examples.dhall

This file was deleted.

6 changes: 0 additions & 6 deletions examples/atari-speaks/index.html

This file was deleted.

227 changes: 0 additions & 227 deletions examples/docs/AudioUnits/Analyser.purs

This file was deleted.

Loading

0 comments on commit be3ba98

Please sign in to comment.