57
57
steps :
58
58
- name : Checkout repository
59
59
uses : actions/checkout@v4
60
+
61
+ - name : Checkout dependency repository
62
+ uses : actions/checkout@v4
63
+ with :
64
+ repository : ' infinilabs/pizza'
65
+ ssh-key : ${{ secrets.SSH_PRIVATE_KEY }}
66
+ submodules : recursive
67
+ ref : main
68
+ path : pizza
69
+
60
70
- name : Setup node
61
71
uses : actions/setup-node@v4
62
72
with :
@@ -65,18 +75,21 @@ jobs:
65
75
with :
66
76
version : latest
67
77
68
- - name : Install rust target
69
- if : matrix.target == 'i686-pc-windows-msvc'
70
- run : rustup target add ${{ matrix.target }}
71
-
72
78
- name : Install dependencies (ubuntu only)
73
79
if : startsWith(matrix.platform, 'ubuntu-22.04')
74
80
run : |
75
81
sudo apt-get update
76
82
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf xdg-utils
77
83
78
- - name : Install Rust stable
79
- run : rustup toolchain install stable
84
+ - name : Add pizza engine as a dependency
85
+ working-directory : src-tauri
86
+ run : |
87
+ if [[ "${{matrix.target }}" != "i686-pc-windows-msvc" ]]; then
88
+ echo "Adding pizza engine as a dependency for ${{matrix.platform }}-${{matrix.target }}"
89
+ ( cargo add --path ../../pizza/lib/engine --features query_string_parser,persistence )
90
+ else
91
+ echo "Skipping pizza engine dependency for ${{matrix.platform }}-${{matrix.target }}"
92
+ fi
80
93
81
94
- name : Rust cache
82
95
uses : swatinem/rust-cache@v2
@@ -92,25 +105,11 @@ jobs:
92
105
- name : Install app dependencies and build web
93
106
run : pnpm install --frozen-lockfile
94
107
95
- - name : Set up SSH agent for private repository clone
96
- if : matrix.target != 'i686-pc-windows-msvc'
97
- uses :
webfactory/[email protected]
98
- with :
99
- ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
100
-
101
- - name : Add Git server to known hosts
102
- if : matrix.platform != 'windows-latest'
103
- run : |
104
- mkdir -p ~/.ssh
105
- ssh-keyscan github.com >> ~/.ssh/known_hosts
106
- chmod 600 ~/.ssh/known_hosts
107
-
108
108
- name : Pizza engine features setup
109
109
working-directory : src-tauri
110
- if : matrix.target != 'i686-pc-windows-msvc'
111
110
run : |
112
- rustup target add ${{ matrix.target }}
113
- (cd .. && make add-dep-pizza-engine)
111
+
112
+
114
113
115
114
- name : Build the app with ${{ matrix.platform }}
116
115
uses : tauri-apps/tauri-action@v0
0 commit comments