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
|
25
flake.nix
25
flake.nix
@ -8,10 +8,7 @@
|
||||
nixpkgs,
|
||||
}: let
|
||||
system = "x86_64-linux";
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
|
||||
crow = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "crow";
|
||||
@ -38,19 +35,31 @@
|
||||
|
||||
doCheck = false;
|
||||
};
|
||||
in {
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
|
||||
packages = with pkgs; [
|
||||
# SvelteKit + Tauri
|
||||
nodejs
|
||||
cargo
|
||||
rustc
|
||||
curl
|
||||
wget
|
||||
pkg-config
|
||||
dbus
|
||||
openssl_3
|
||||
glib
|
||||
gtk3
|
||||
libsoup
|
||||
webkitgtk
|
||||
gnumake
|
||||
librsvg
|
||||
|
||||
# C/C++
|
||||
boost
|
||||
crow
|
||||
gnumake
|
||||
];
|
||||
in {
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
buildInputs = packages;
|
||||
|
||||
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;
|
||||
|
@ -29,7 +29,7 @@
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
],
|
||||
"identifier": "com.tauri.dev",
|
||||
"identifier": "com.tauri.dev.library-manager",
|
||||
"longDescription": "",
|
||||
"macOS": {
|
||||
"entitlements": null,
|
||||
@ -40,7 +40,13 @@
|
||||
},
|
||||
"resources": [],
|
||||
"shortDescription": "",
|
||||
"targets": "all",
|
||||
"targets": [
|
||||
"deb",
|
||||
"msi",
|
||||
"app",
|
||||
"dmg",
|
||||
"updater"
|
||||
],
|
||||
"windows": {
|
||||
"certificateThumbprint": null,
|
||||
"digestAlgorithm": "sha256",
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const prerender = false;
|
||||
export const prerender = true;
|
||||
export const ssr = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user