Skip to content

Commit

Permalink
pin version to 0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hall committed Jan 9, 2023
1 parent 7342381 commit b4638e5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: nix build
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
with:
prerelease: true
files: out/open_source/open_source.bin
prerelease: true # TODO: version things
files: result/little-buddy*.bin
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,6 @@ Release/

# configuration file
# *.ini

# nix output
result
9 changes: 7 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@

outputs = inputs@{ self, ... }:
with inputs.utils.lib; eachSystem
# `gcc-arm-embedded-9` not supported on `aarch64-darwin`
(with system; [
x86_64-linux
aarch64-linux
# `gcc-arm-embedded-9` not supported on `aarch64-darwin`
])
(system:
let pkgs = inputs.nixpkgs.legacyPackages.${system}; in
{
packages.default = pkgs.stdenv.mkDerivation {
packages.default = pkgs.stdenv.mkDerivation rec {
name = "little-buddy";
version = "0.0.0"; # TODO: get version from tags?
src = ./.;
makeFlags = [
# "-j"
Expand All @@ -30,6 +31,10 @@
flashrom
minicom
];
installPhase = ''
mkdir -p $out
mv ./out/open_source/open_source.bin $out/${name}-${version}.bin
'';
};
});
}

0 comments on commit b4638e5

Please sign in to comment.