Skip to content

Commit

Permalink
parser updates, asm/dasm, CI produces servers
Browse files Browse the repository at this point in the history
  • Loading branch information
dfgordon committed Jul 27, 2024
1 parent adf21e3 commit ff201b5
Show file tree
Hide file tree
Showing 12 changed files with 1,429 additions and 416 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
needs: test
runs-on: ${{ matrix.OS }}
env:
NAME: a2kit
CLI: ("a2kit")
SERVERS: ("server-applesoft" "server-integerbasic" "server-merlin")
TARGET: ${{ matrix.TARGET }}
OS: ${{ matrix.OS }}
steps:
Expand All @@ -69,19 +70,26 @@ jobs:
- name: Compress
run: |
mkdir -p ./artifacts
# windows is the only OS using a different convention for executable file name
if [[ $OS =~ ^windows.*$ ]]; then
EXEC=$NAME.exe
EXE=".exe"
else
EXEC=$NAME
EXE=""
fi
if [[ $GITHUB_REF_TYPE =~ ^tag$ ]]; then
TAG=$GITHUB_REF_NAME
else
TAG=$GITHUB_SHA
fi
mv ./target/$TARGET/release/$EXEC ./$EXEC
tar -czf ./artifacts/$NAME-$TARGET-$TAG.tar.gz $EXEC completions
cli_list="completions"
for i in ${CLI[@]}; do
cli_list+=" ./target/$TARGET/release/${i}$EXE"
done
tar -czf ./artifacts/a2kit-$TARGET-$TAG.tar.gz $cli_list
server_list=""
for i in ${SERVERS[@]}; do
server_list+=" ./target/$TARGET/release/${i}$EXE"
done
tar -czf ./artifacts/server-$TARGET-$TAG.tar.gz $server_list
- name: Archive artifact
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ env_logger = "0.11.3"
hex = "0.4.3"
a2-memory-map = "1.0.4"
tree-sitter = "0.22.4"
tree-sitter-applesoft = "3.2.0"
tree-sitter-integerbasic = "1.1.1"
tree-sitter-applesoft = "4.0.0"
tree-sitter-integerbasic = "2.0.0"
tree-sitter-merlin6502 = "3.0.0"
lsp-types = "0.95.0"
lsp-server = "0.7.6"
Expand Down
Loading

0 comments on commit ff201b5

Please sign in to comment.