Skip to content

Commit

Permalink
Merge pull request #412 from Pivot-Studio/feat/llvm-18
Browse files Browse the repository at this point in the history
Feat/llvm 18
  • Loading branch information
Chronostasys authored Apr 30, 2024
2 parents 759dd5b + 7b5fb73 commit 160cdb1
Show file tree
Hide file tree
Showing 135 changed files with 5,933 additions and 1,414 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/brew_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
install: |
lib.install Dir["./planglib"]
lib.install "./libvm.a"
lib.install "./libvm.dylib"
bin.install "./plc"
# Custom test command for your formula so you can run `brew test`.
# Optional - string.
Expand All @@ -51,7 +52,7 @@ jobs:
# Darwin AMD pre-existing path example: https://github.com/justintime50/myrepo/releases/download/v1.2.0/myrepo-1.2.0-darwin-amd64.tar.gz
# Linux ARM pre-existing path example: https://github.com/justintime50/myrepo/releases/download/v1.2.0/myrepo-1.2.0-linux-arm64.tar.gz
# Optional - booleans.
target_darwin_amd64: true
target_darwin_amd64: false
target_darwin_arm64: true
# target_linux_amd64: true
# target_linux_arm64: false
Expand Down
25 changes: 18 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,27 @@ jobs:
fail-fast: false
matrix:
config:
- os: "macOS-latest"
dir: osx64
arch: darwin-amd64
artifacts: "plc"
RUSTFLAGS: ""
libvm: "libvm.a"
- os: "self-hosted"
- os: "macos-14"
dir: osx64
arch: darwin-arm64
artifacts: "plc"
RUSTFLAGS: ""
libvm: "libvm.a"
libvm_dylib: "libvm.dylib"
- os: "ubuntu-latest"
dir: linux64
debdir: pivot-lang_0.1.0-1_amd64
artifacts: "plc"
arch: linux-amd64
RUSTFLAGS: ""
libvm: "libvm.a"
libvm_dylib: "libvm.so"
- os: "windows-latest"
dir: win64
artifacts: "plc.exe"
RUSTFLAGS: "-Dwarnings -Ctarget-feature=+crt-static"
libvm: "vm.lib"
libvm_dylib: "vm.dll"
arch: windows-amd64
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -116,6 +113,20 @@ jobs:
dst = os.environ['OUT_DIR'] + "/" + artifact
shutil.copy(src, dst)
shell: python
- name: Move libvm dylib
env:
ARTIFACTS: ${{ matrix.config.libvm_dylib }}
OUT_DIR: ${{ matrix.config.dir }}
OS: ${{ matrix.config.os }}
run: |
import os
import shutil
artifacts = os.environ['ARTIFACTS'].split()
for artifact in artifacts:
src = "target/release/%s" % artifact
dst = os.environ['OUT_DIR'] + "/" + artifact
shutil.copy(src, dst)
shell: python
- name: Move pllib
env:
ARTIFACTS: planglib
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest", "macOS-latest", "self-hosted"]
os: ["ubuntu-latest", "windows-latest", "macos-14"]
include:
- RUSTFLAGS: "-Dwarnings"
CARGO_INCREMENTAL: 1
Expand Down
6 changes: 6 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@
"name": "debug lsp",
"program": "plc",
},
{
"type": "lldb",
"request": "attach",
"name": "debug repl",
"pid": "${command:pickProcess}"
},
{
"type": "pivot",
"request": "launch",
Expand Down
Loading

0 comments on commit 160cdb1

Please sign in to comment.