Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build CLI
working-directory: cli
run: cargo build
run: cargo build -p fuso

linux:
runs-on: ubuntu-latest
Expand All @@ -22,5 +21,4 @@ jobs:
- name: Install GTK4 dev dependencies
run: sudo apt-get update && sudo apt-get install -y libgtk-4-dev
- name: Build Linux app
working-directory: linux
run: cargo build
run: cargo build -p fuso-linux
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Publish
working-directory: cli
- name: Publish fuso-core
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish
run: cargo publish -p fuso-core

- name: Publish fuso
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: sleep 30 && cargo publish -p fuso
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ jobs:
- uses: actions/checkout@v4

- name: Build Swift app
working-directory: macos
run: swift build -c release

- name: Bundle app
working-directory: macos
run: |
mkdir -p Fuso.app/Contents/MacOS
mkdir -p Fuso.app/Contents/Resources
cp .build/release/Fuso Fuso.app/Contents/MacOS/Fuso
cp Sources/Info.plist Fuso.app/Contents/Info.plist
zip -r Fuso-macos-app.zip Fuso.app
zip -r ../Fuso-macos-app.zip Fuso.app

- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -67,14 +69,13 @@ jobs:
echo 'linker = "aarch64-linux-gnu-gcc"' >> ~/.cargo/config.toml

- name: Build CLI
working-directory: cli
run: cargo build --release --target ${{ matrix.target }}
run: cargo build --release -p fuso --target ${{ matrix.target }}

- name: Package
run: |
cd cli/target/${{ matrix.target }}/release
cd target/${{ matrix.target }}/release
tar czf ${{ matrix.artifact }}.tar.gz fuso
mv ${{ matrix.artifact }}.tar.gz ../../../../
mv ${{ matrix.artifact }}.tar.gz ../../../

- uses: actions/upload-artifact@v4
with:
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ DerivedData/
.DS_Store
Fuso.app/
thoughts/
cli/target/
linux/target/
target/
Loading