Skip to content

Commit

Permalink
Re-enable bundle + plugin upload fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Jan 12, 2025
1 parent 869da40 commit 2775ba3
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ jobs:
cd src/linux
cmake -B build
cmake --build build --parallel 4
cp build/libbtop.so ${{ github.workspace }}/libbtop-${{ matrix.os }}-${{ matrix.arch }}
- name: Start VM
if: ${{ matrix.os == 'FreeBSD' }}
Expand Down Expand Up @@ -143,10 +144,9 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: btop-plugin-${{ matrix.os}}-${{ matrix.arch }}
path: ./libbtop-${{ matrix.os }}-${{ matrix.arch }}.so
path: ./libbtop-${{ matrix.os }}-${{ matrix.arch }}

bundle:
if: false
name: Bundle plugins with btop
runs-on: ubuntu-latest
needs: [build, build_plugin]
Expand All @@ -170,9 +170,8 @@ jobs:
- name: Download btop
uses: actions/download-artifact@v4
with:
pattern: btop-*
path: /tmp/btop/
merge-multiple: true
name: btop
path: .

- name: Download btop plugins
uses: actions/download-artifact@v4
Expand All @@ -181,19 +180,12 @@ jobs:
path: /tmp/btop-plugin/
merge-multiple: true

- name: Apelink
- name: Bundle
run: |
cosmo_bin=$(dirname $(which cosmocc))
$(which apelink) \
-l ${cosmo_bin}/ape-x86_64.elf \
-l ${cosmo_bin}/ape-aarch64.elf \
-M ${cosmo_bin}/ape-m1.c \
-o btop.com \
/tmp/btop/btop-x86_64 \
/tmp/btop/btop-aarch64
tree /tmp/btop-plugin || true
mv btop btop.com
sudo mkdir -p /zip/x86_64/linux
sudo mkdir -p /zip/x86_64/macos
sudo mkdir -p /zip/x86_64/windows
Expand Down

0 comments on commit 2775ba3

Please sign in to comment.