Skip to content

Commit

Permalink
infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Weathercold committed Jan 23, 2023
1 parent 0f03a32 commit d493bfb
Show file tree
Hide file tree
Showing 13 changed files with 195 additions and 901 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
- name: Build project
run: |
export PATH=$ANDROID_HOME/build-tools/32.0.0:$PATH
lein uberdex
run: "nix develop -c lein uberdex"
- name: Upload desktop build
uses: actions/upload-artifact@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .idea/extra-logging.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/Desktop_build.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
description = "Extra Logging development shell";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
android = {
url = "github:tadfisher/android-nixpkgs/stable";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, android }:
with nixpkgs.legacyPackages.x86_64-linux;
let
android-sdk = android.sdk.x86_64-linux (sdkPkgs: with sdkPkgs; [
cmdline-tools-latest
build-tools-32-0-0
emulator
# platform-tools
platforms-android-32
]);
in
{
formatter.x86_64-linux = nixpkgs-fmt;
devShells.x86_64-linux.default = mkShell {
buildInputs = [
temurin-bin
leiningen
android-sdk
];
shellHook = ''
export JAVA_HOME=${temurin-bin} \
ANDROID_SDK_ROOT=${android-sdk}/share/android-sdk \
PATH=$JAVA_HOME/bin:$ANDROID_SDK_ROOT/build-tools/32.0.0:$PATH
'';
};
};
}
Loading

0 comments on commit d493bfb

Please sign in to comment.