Skip to content

Commit

Permalink
ci: rename output files, no longer use docker
Browse files Browse the repository at this point in the history
  • Loading branch information
xcb-xwii committed Apr 20, 2024
1 parent 1945846 commit 4115dc0
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ jobs:
with:
submodules: recursive
- name: Build
run: sh make.sh lua_tree_sitter.dll ${{ matrix.editor.make_opts }}
run: >-
sh make.sh lua_tree_sitter.dll ${{ matrix.editor.make_opts }} &&
mv lua-tree-sitter/lua_tree_sitter.dll init.dll
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.editor.name }}-tree-sitter-x86_64-windows
path: lua-tree-sitter/lua_tree_sitter.dll
path: init.dll
if-no-files-found: error

linux:
name: Build for Linux
Expand All @@ -52,25 +55,24 @@ jobs:
- name: x86_64
cc: gcc
- name: aarch64
cc: aarch64-linux-gnu-gcc
cc: gcc-aarch64-linux-gnu
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install cc
run: sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get install make ${{ matrix.arch.cc }}
- name: Build
uses: docker://archlinux:latest
with:
args: >-
sh -c "
pacman -Sy --noconfirm make ${{ matrix.arch.cc }} &&
sh make.sh lua_tree_sitter.so CC=${{ matrix.arch.cc }} ${{ matrix.editor.make_opts }}
"
run: >-
sh make.sh lua_tree_sitter.so CC=${{ matrix.arch.cc }} ${{ matrix.editor.make_opts }} &&
mv lua-tree-sitter/lua_tree_sitter.so init.so
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.editor.name }}-tree-sitter-${{ matrix.arch.name }}-linux
path: lua-tree-sitter/lua_tree_sitter.so
path: init.so
if-no-files-found: error

macos:
name: Build for MacOS
Expand All @@ -93,9 +95,12 @@ jobs:
with:
submodules: recursive
- name: Build
run: bash make.sh lua_tree_sitter.so ${{ matrix.arch.make_opts }} ${{ matrix.editor.make_opts }}
run: >-
bash make.sh lua_tree_sitter.so ${{ matrix.arch.make_opts }} ${{ matrix.editor.make_opts }} &&
mv lua-tree-sitter/lua_tree_sitter.so init.so
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.editor.name }}-tree-sitter-${{ matrix.arch.name }}-macos
path: lua-tree-sitter/lua_tree_sitter.so
name: ${{ matrix.editor.name }}-tree-sitter-${{ matrix.arch.name }}-darwin
path: init.so
if-no-files-found: error

0 comments on commit 4115dc0

Please sign in to comment.