Skip to content

Commit

Permalink
try another way
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrowder committed Sep 29, 2023
1 parent da7f015 commit 36df4cb
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion lib/Mi6/Helper.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,16 @@ sub mi6-helper-new(:$parent-dir!, :$module-name!, :$provides, :$debug) is export
$fh.say($_) for @omodfil;
$fh.close;

# use the .github/workflows/*.yml files as I've updated them
# use the Mi6-Helper/.github/workflows/*.yml files as I've updated them
# but they will be in DISTRIBUTION.contents
my ($Lstr, $Mstr, $Wstr) = get-workflows; # fil = "$parent-dir/.github/workflows/linux.yml";
my $Lfil = "$modpdir/.github/workflows/linux.yml";
my $Wfil = "$modpdir/.github/workflows/windows.yml";
my $Mfil = "$modpdir/.github/workflows/macos.yml";

spurt $Lfil, $Lstr;
spurt $Mfil, $Mstr;
spurt $Wfil, $Wstr;

=begin comment
my $testfil = "$modpdir/.github/workflows/test.yml";
Expand Down Expand Up @@ -390,6 +399,13 @@ sub get-section($section --> Str) {
}
}

sub get-workflows(--> List) is export {
my $L = $?DISTRIBUTION.contents<.github/workflows/linux.yml>;
my $M = $?DISTRIBUTION.contents<.github/workflows/macos.yml>;
my $W = $?DISTRIBUTION.contents<.github/workflows/windows.yml>;
$L, $M, $L
}

sub get-version is export {
$?DISTRIBUTION.meta<version>
}

0 comments on commit 36df4cb

Please sign in to comment.