Merge branch 'nonexistent-builds' into 'main'
Try to fix non-existent builds See merge request greg/mingw-sword-build!2
This commit is contained in:
+2
-1
@@ -26,7 +26,8 @@ build:
|
||||
tags:
|
||||
- nix
|
||||
script:
|
||||
- nix build -L ".#${ARCH}"
|
||||
- nix run -L ".#${ARCH}"
|
||||
- ls -l
|
||||
- URL=$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/sword-utils/$TAG/sword-${ARCH}-${TAG}.tar.xz
|
||||
- >-
|
||||
if [ "$CI_COMMIT_BRANCH" == "main" ]; then
|
||||
|
||||
@@ -83,11 +83,18 @@
|
||||
}
|
||||
);
|
||||
in
|
||||
pkgs.writeShellScriptBin "package-sword" ''
|
||||
pkgs.writeShellApplication {
|
||||
name = "package-sword";
|
||||
runtimeInputs = with pkgs; [
|
||||
gnutar
|
||||
xz
|
||||
];
|
||||
text = ''
|
||||
out=$(pwd)
|
||||
pushd ${svnSword}
|
||||
${pkgs.gnutar}/bin/tar cvhaf $out/sword.tar.xz * --transform "s+^+sword/+"
|
||||
tar cvhaf "$out/sword.tar.xz" ./* --transform "s+^\\./+sword/+"
|
||||
'';
|
||||
};
|
||||
in
|
||||
with pkgs.pkgsCross;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user