Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: bebop v3 #311

Merged
merged 71 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
c87dd0f
feature: experimental WASI target
andrewmd5 May 27, 2023
ebc8d83
stage
andrewmd5 Dec 10, 2023
633bc7f
Merge branch 'features/wasi-cli' into features/posix
andrewmd5 Dec 10, 2023
33ddfee
feat: refactored cli
andrewmd5 Dec 15, 2023
82040cf
Merge pull request #287 from betwixt-labs/features/posix
andrewmd5 Dec 17, 2023
57f2c68
misc
andrewmd5 Dec 21, 2023
c0f95fb
chore: update workflow for bebopc build
andrewmd5 Dec 21, 2023
849eac3
Merge pull request #288 from betwixt-labs/features/wasi-cli
andrewmd5 Dec 21, 2023
2264243
refactor attributes to decorators
andrewmd5 Jan 6, 2024
821c49a
feat: string substitution
andrewmd5 Jan 6, 2024
2ed3d34
add more tokens
andrewmd5 Jan 6, 2024
8bcb1de
feat: compiler extensions
andrewmd5 Jan 17, 2024
9b396ed
ignore
andrewmd5 Jan 17, 2024
4555f32
ignore wat
andrewmd5 Jan 17, 2024
7671a6b
sdks
andrewmd5 Jan 17, 2024
7427e8e
ignore chord archives
andrewmd5 Jan 17, 2024
a641195
Merge pull request #291 from betwixt-labs/feature/extensions
andrewmd5 Jan 17, 2024
7b40d01
feat: bebop-tools wasi (node)
andrewmd5 Jan 19, 2024
5962630
Merge pull request #292 from betwixt-labs/features/wasi-node-tools
andrewmd5 Jan 19, 2024
4e76d83
freat: v2 to v3 converter
andrewmd5 Jan 19, 2024
7f492f2
Merge pull request #293 from betwixt-labs/convert-command
andrewmd5 Jan 19, 2024
36dabcb
feature: javascript edk
andrewmd5 Jan 19, 2024
6ddb1a1
feat: stringbuilder
andrewmd5 Jan 19, 2024
bc8e3b4
chore: rename folders
andrewmd5 Jan 19, 2024
c543392
Merge pull request #294 from betwixt-labs/features/chord-js
andrewmd5 Jan 19, 2024
5f75267
misc
andrewmd5 Jan 20, 2024
b0f7692
Merge pull request #295 from betwixt-labs/fixes
andrewmd5 Jan 20, 2024
7c7087a
misc
andrewmd5 Jan 20, 2024
07c92e2
remove structured logging
andrewmd5 Jan 20, 2024
f964c04
feat: add 'mut' modifier
andrewmd5 Jan 21, 2024
65d3c8d
update runtime attribute
andrewmd5 Jan 21, 2024
02e4e2f
Merge pull request #296 from betwixt-labs/mut-modifier
andrewmd5 Jan 21, 2024
c9830f1
Merge pull request #297 from betwixt-labs/remove-structure
andrewmd5 Jan 21, 2024
16fe79e
feat: .dev.vars
andrewmd5 Jan 21, 2024
25a0553
Merge pull request #298 from betwixt-labs/dev-vars
andrewmd5 Jan 21, 2024
8f750eb
fix: binary schema
andrewmd5 Jan 27, 2024
dd214d6
Merge pull request #299 from betwixt-labs/binary-schema
andrewmd5 Jan 27, 2024
515b5b5
feat: playground
andrewmd5 Feb 6, 2024
c9a568c
Merge pull request #300 from betwixt-labs/playground
andrewmd5 Feb 6, 2024
7abf5dd
chore: convert schemas from v2 to v3
andrewmd5 Feb 6, 2024
6f9ede9
Merge pull request #301 from betwixt-labs/lab-convert
andrewmd5 Feb 7, 2024
1412d8d
rc.1
andrewmd5 Feb 10, 2024
8e618c1
Merge pull request #302 from betwixt-labs/rc1
andrewmd5 Feb 10, 2024
15d6dcb
fix: publish workflow
andrewmd5 Feb 10, 2024
06ddcbd
fix: include wasmtime
andrewmd5 Feb 10, 2024
feef797
fix: install race condition on ci
andrewmd5 Feb 10, 2024
3acea8d
fix: trim executables
andrewmd5 Feb 10, 2024
a66f682
fix: version (vscode marketplace)
andrewmd5 Feb 10, 2024
d6359a8
punching the air
andrewmd5 Feb 10, 2024
3908018
fix: wasmtime.dylib
andrewmd5 Feb 10, 2024
1bc1f15
fix: extension loading
andrewmd5 Feb 10, 2024
8a8b1d5
fix: trimming issues
andrewmd5 Feb 10, 2024
4d23ad1
feat: schema hover handler
andrewmd5 Feb 10, 2024
9da602a
misc
andrewmd5 Feb 10, 2024
42a0102
bump
andrewmd5 Feb 10, 2024
f89e97a
fix: missing shebang
andrewmd5 Feb 10, 2024
8dbb630
fix: don't overload toJSON
andrewmd5 Feb 10, 2024
2a1feff
feat: types for CompilerContext
andrewmd5 Mar 11, 2024
aea4815
Merge pull request #303 from betwixt-labs/ts-ext
andrewmd5 Mar 11, 2024
826756b
feat: build workflow
andrewmd5 Mar 11, 2024
e33a04d
Merge pull request #304 from betwixt-labs/chordc-workflow
andrewmd5 Mar 11, 2024
c2813d6
fix: workflow zip path
andrewmd5 Mar 11, 2024
188b202
fix: paths
andrewmd5 Mar 11, 2024
fb293c7
Merge pull request #305 from betwixt-labs/chordc-workflow
andrewmd5 Mar 11, 2024
1a96e76
chore: chordc workflow
andrewmd5 Mar 11, 2024
0542ccf
chore: update publish workflow
andrewmd5 Mar 12, 2024
c158f42
Merge pull request #306 from betwixt-labs/chordc-workflow
andrewmd5 Mar 12, 2024
84f953e
feat: improved documentation
andrewmd5 Jan 23, 2024
49b2968
Merge pull request #307 from betwixt-labs/docs
andrewmd5 Mar 12, 2024
05a0db8
feat: release v3
andrewmd5 Mar 12, 2024
4f0fcee
Merge pull request #310 from betwixt-labs/marketing
andrewmd5 Mar 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION="2.8.7"
MAJOR=2
MINOR=8
PATCH=7
VERSION="3.0.4"
MAJOR=3
MINOR=0
PATCH=4
35 changes: 28 additions & 7 deletions .github/workflows/build-bebopc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:
- "Core/**"
branches:
- master
- vnext
pull_request:
paths:
- "Compiler/**"
- "Core/**"
branches:
- master
- vnext
jobs:
build-compiler:
runs-on: ${{ matrix.os }}
Expand All @@ -31,32 +33,39 @@ jobs:
- os: ubuntu-22.04
IDENTIFIER: linux
ARTIFACT: bebopc
BUILD_WASI: true

env:
CONFIGURATION: Release
BUILD_ARTIFACT_X86_64: ./bin/compiler/Release/publish/${{matrix.IDENTIFIER}}-x64/${{matrix.ARTIFACT}}
BUILD_ARTIFACT_ARM64: ./bin/compiler/Release/publish/${{matrix.IDENTIFIER}}-arm64/${{matrix.ARTIFACT}}
BUILD_ARTIFACT_WASI: ./bin/compiler/Release/artifacts/wasi-wasm/AppBundle/${{matrix.ARTIFACT}}.wasm
BUILD_ZIP_ARTIFACT_X86_64: ./bin/compiler/Release/publish/${{matrix.ARTIFACT}}-${{matrix.IDENTIFIER}}-x64.zip
BUILD_ZIP_ARTIFACT_ARM64: ./bin/compiler/Release/publish/${{matrix.ARTIFACT}}-${{matrix.IDENTIFIER}}-arm64.zip

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Get Enviorment Variables
id: dotenv
uses: falti/dotenv-action@v0.2.5
uses: falti/dotenv-action@v1.0.4

- if: matrix.os == 'ubuntu-22.04'
name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install clang zlib1g-dev libkrb5-dev libtinfo5

- if: matrix.os == 'ubuntu-22.04' && matrix.BUILD_WASI
name: Install WASI Dependencies
run: ./install-wasi.sh
working-directory: ./scripts/

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.0.x" # SDK Version to use; x will use the latest version of the 7.0 channel
include-prerelease: true
dotnet-version: "8.0.x"
dotnet-quality: "preview"
- name: Restore Solution
run: dotnet restore

Expand All @@ -66,6 +75,11 @@ jobs:
dotnet publish -c ${{env.CONFIGURATION}} -r ${{matrix.IDENTIFIER}}-arm64 -p:ReleaseVersion=${{ steps.dotenv.outputs.version }} -p:PublishTrimmed=false -p:PublishSingleFile=true --self-contained
working-directory: ./Compiler/

- if: matrix.os == 'ubuntu-22.04' && matrix.BUILD_WASI
name: Build bebopc for WASI
run: ./build-wasi.sh
working-directory: ./scripts/

- if: matrix.os == 'macos-latest'
name: Zip macOS Binary
run: |
Expand All @@ -86,13 +100,20 @@ jobs:
Compress-Archive -Path ${{env.BUILD_ARTIFACT_ARM64}} -DestinationPath ${{env.BUILD_ZIP_ARTIFACT_ARM64}}

- name: Upload X86_64 Build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{matrix.IDENTIFIER}}-x64
path: ${{env.BUILD_ZIP_ARTIFACT_X86_64}}

- name: Upload ARM64 Build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{matrix.IDENTIFIER}}-arm64
path: ${{env.BUILD_ZIP_ARTIFACT_ARM64}}

- if: matrix.os == 'ubuntu-22.04' && matrix.BUILD_WASI
name: Upload WASI_WASM Build
uses: actions/upload-artifact@v4
with:
name: wasi-wasm
path: ${{env.BUILD_ARTIFACT_WASI}}
108 changes: 108 additions & 0 deletions .github/workflows/build-chordc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: build-chordc
on:
workflow_dispatch:
push:
paths:
- "extensions/**"
branches:
- master
- vnext
pull_request:
paths:
- "extensions/**"
branches:
- master
- vnext
jobs:
build-chordc:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-22.04]
include:
- os: macos-latest
IDENTIFIER: osx
ARTIFACT: chordc

- os: windows-latest
IDENTIFIER: win
ARTIFACT: chordc.exe

- os: ubuntu-22.04
IDENTIFIER: linux
ARTIFACT: chordc
BUILD_WASI: true

env:
CONFIGURATION: Release
CHORD_ARTIFACT_X86_64: ./extensions/chordc/bin/Release/net8.0/${{matrix.IDENTIFIER}}-x64/publish/${{matrix.ARTIFACT}}
CHORD_ARTIFACT_ARM64: ./extensions/chordc/bin/Release/net8.0/${{matrix.IDENTIFIER}}-arm64/publish/${{matrix.ARTIFACT}}
CHORD_ZIP_ARTIFACT_X86_64: ./extensions/chordc/bin/Release/net8.0/${{matrix.IDENTIFIER}}-x64/publish/${{matrix.ARTIFACT}}-${{matrix.IDENTIFIER}}-x64.zip
CHORD_ZIP_ARTIFACT_ARM64: ./extensions/chordc/bin/Release/net8.0/${{matrix.IDENTIFIER}}-arm64/publish/${{matrix.ARTIFACT}}-${{matrix.IDENTIFIER}}-arm64.zip

steps:
- uses: actions/checkout@v4

- name: Get Enviorment Variables
id: dotenv
uses: falti/[email protected]

- if: matrix.os == 'ubuntu-22.04'
name: Install Dependencies
run: |
sudo dpkg --add-architecture arm64
sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list <<EOF
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
EOF'
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
sudo sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
sudo apt update
sudo apt install -y clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev zlib1g-dev:arm64

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
dotnet-quality: "preview"
- name: Restore Solution
run: dotnet restore
working-directory: ./extensions/chordc

- name: Build chordc
run: |
dotnet publish -c ${{env.CONFIGURATION}} -r ${{matrix.IDENTIFIER}}-x64
dotnet publish -c ${{env.CONFIGURATION}} -r ${{matrix.IDENTIFIER}}-arm64
working-directory: ./extensions/chordc

- if: matrix.os == 'macos-latest'
name: Zip chordc macOS Binary
run: |
zip -j ${{env.CHORD_ZIP_ARTIFACT_X86_64}} ${{env.CHORD_ARTIFACT_X86_64}}
zip -j ${{env.CHORD_ZIP_ARTIFACT_ARM64}} ${{env.CHORD_ARTIFACT_ARM64}}

- if: matrix.os == 'ubuntu-22.04'
name: ZIP chordc Linux Build
run: |
zip -j ${{env.CHORD_ZIP_ARTIFACT_X86_64}} ${{env.CHORD_ARTIFACT_X86_64}}
zip -j ${{env.CHORD_ZIP_ARTIFACT_ARM64}} ${{env.CHORD_ARTIFACT_ARM64}}

- if: matrix.os == 'windows-latest'
name: ZIP chordc Windows Build
shell: powershell
run: |
Compress-Archive -Path ${{env.CHORD_ARTIFACT_X86_64}} -DestinationPath ${{env.CHORD_ZIP_ARTIFACT_X86_64}}
Compress-Archive -Path ${{env.CHORD_ARTIFACT_ARM64}} -DestinationPath ${{env.CHORD_ZIP_ARTIFACT_ARM64}}

- name: Upload chordc X86_64 Build
uses: actions/upload-artifact@v4
with:
name: chordc-${{matrix.IDENTIFIER}}-x64
path: ${{env.CHORD_ZIP_ARTIFACT_X86_64}}

- name: Upload chordc ARM64 Build
uses: actions/upload-artifact@v4
with:
name: chordc-${{matrix.IDENTIFIER}}-arm64
path: ${{env.CHORD_ZIP_ARTIFACT_ARM64}}
36 changes: 36 additions & 0 deletions .github/workflows/build-playground.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Bebop Playground
on:
workflow_dispatch:
push:
paths:
- "playground/**"
pull_request:
paths:
- "playground/**"
jobs:
build-repl:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Get Enviorment Variables
id: dotenv
uses: falti/[email protected]

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
dotnet-quality: 'preview'
- name: Build Playground
run: |
../scripts/install-wasi.sh
yarn install
yarn build:site
working-directory: ./playground/

- name: Upload Package
uses: actions/upload-artifact@v4
with:
name: bebop-playground-latest
path: ${{github.workspace}}/playground/dist/
38 changes: 0 additions & 38 deletions .github/workflows/build-repl.yml

This file was deleted.

13 changes: 7 additions & 6 deletions .github/workflows/build-runtime-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,24 @@ jobs:
RUNTIME_ROOT: ${{github.workspace}}/Runtime/C#
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Get Enviorment Variables
id: dotenv
uses: falti/dotenv-action@v0.2.5
uses: falti/dotenv-action@v1.0.4

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
5.0.x
6.0.x
7.0.x
include-prerelease: true
8.0.x
dotnet-quality: 'preview'
- name: Generate Output.g.cs
working-directory: "./Laboratory/C#"
run: dotnet run --project ../../Compiler/ --cs "./GeneratedTestCode/Output.g.cs" --namespace Bebop.Codegen --files $(ls -p ../Schemas/Valid/*.bop | tr '\n' ' ')
run: dotnet run --project ../../Compiler/ --include $(ls -p ../Schemas/Valid/*.bop | tr '\n' ' ') build --generator "cs:./GeneratedTestCode/Output.g.cs,namespace=Bebop.Codegen"

- name: Run Test .NET 6
run: dotnet test -c Release -f net6.0
Expand All @@ -58,7 +59,7 @@ jobs:
working-directory: ${{env.RUNTIME_ROOT}}

- name: Upload Package
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: bebop-runtime-cs-latest
path: ${{env.RUNTIME_ROOT}}/bin/Release/*.nupkg
8 changes: 2 additions & 6 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
5.0.x
6.0.x
7.0.x
include-prerelease: true
dotnet-version: 8.0.x
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
Expand Down
Loading
Loading