fix: fixes tauri builds and adds workflow to see if everything builds
This commit is contained in:
parent
3697db9b7d
commit
c7ec67f1bb
25
.github/workflows/build.yml
vendored
Normal file
25
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: Builds Application
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Builds backend
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: cachix/install-nix-action@v19
|
||||||
|
with:
|
||||||
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Enter Development Shell
|
||||||
|
run: nix develop
|
||||||
|
- name: Build Backend
|
||||||
|
run: make
|
||||||
|
- name: Install NPM Packages
|
||||||
|
run: npm install
|
||||||
|
- name: Build Frontend
|
||||||
|
run: npm run tauri build
|
17
.github/workflows/cpp.yml
vendored
17
.github/workflows/cpp.yml
vendored
@ -1,17 +0,0 @@
|
|||||||
name: C/C++ CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "master" ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ "master" ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: make
|
|
||||||
run: make
|
|
39
flake.nix
39
flake.nix
@ -8,10 +8,7 @@
|
|||||||
nixpkgs,
|
nixpkgs,
|
||||||
}: let
|
}: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
pkgs = import nixpkgs {inherit system;};
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit system;
|
|
||||||
};
|
|
||||||
|
|
||||||
crow = pkgs.stdenv.mkDerivation rec {
|
crow = pkgs.stdenv.mkDerivation rec {
|
||||||
pname = "crow";
|
pname = "crow";
|
||||||
@ -38,19 +35,31 @@
|
|||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
# SvelteKit + Tauri
|
||||||
|
nodejs
|
||||||
|
cargo
|
||||||
|
rustc
|
||||||
|
curl
|
||||||
|
wget
|
||||||
|
pkg-config
|
||||||
|
dbus
|
||||||
|
openssl_3
|
||||||
|
glib
|
||||||
|
gtk3
|
||||||
|
libsoup
|
||||||
|
webkitgtk
|
||||||
|
librsvg
|
||||||
|
|
||||||
|
# C/C++
|
||||||
|
boost
|
||||||
|
crow
|
||||||
|
gnumake
|
||||||
|
];
|
||||||
in {
|
in {
|
||||||
devShells.${system}.default = pkgs.mkShell {
|
devShells.${system}.default = pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [
|
buildInputs = packages;
|
||||||
nodejs
|
|
||||||
cargo
|
|
||||||
rustc
|
|
||||||
pkg-config
|
|
||||||
gtk3
|
|
||||||
webkitgtk
|
|
||||||
gnumake
|
|
||||||
boost
|
|
||||||
crow
|
|
||||||
];
|
|
||||||
|
|
||||||
shellHook = with pkgs; ''
|
shellHook = with pkgs; ''
|
||||||
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS;
|
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS;
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
"icons/icon.icns",
|
"icons/icon.icns",
|
||||||
"icons/icon.ico"
|
"icons/icon.ico"
|
||||||
],
|
],
|
||||||
"identifier": "com.tauri.dev",
|
"identifier": "com.tauri.dev.library-manager",
|
||||||
"longDescription": "",
|
"longDescription": "",
|
||||||
"macOS": {
|
"macOS": {
|
||||||
"entitlements": null,
|
"entitlements": null,
|
||||||
@ -40,7 +40,13 @@
|
|||||||
},
|
},
|
||||||
"resources": [],
|
"resources": [],
|
||||||
"shortDescription": "",
|
"shortDescription": "",
|
||||||
"targets": "all",
|
"targets": [
|
||||||
|
"deb",
|
||||||
|
"msi",
|
||||||
|
"app",
|
||||||
|
"dmg",
|
||||||
|
"updater"
|
||||||
|
],
|
||||||
"windows": {
|
"windows": {
|
||||||
"certificateThumbprint": null,
|
"certificateThumbprint": null,
|
||||||
"digestAlgorithm": "sha256",
|
"digestAlgorithm": "sha256",
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
export const prerender = false;
|
export const prerender = true;
|
||||||
export const ssr = false;
|
export const ssr = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user