Skip to content

Commit

Permalink
Emoji, why not
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Feb 12, 2024
1 parent 46a127f commit e771ab0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function run() {
process.chdir(inputs.workingDirectory);
}

const hashes = await core.group("Calculate hashes", async () => {
const hashes = await core.group(":hash: Calculate hashes", async () => {
const hashes = await hashProject(inputs.stackYaml);
core.info(`Snapshot: ${hashes.snapshot}`);
core.info(`Packages: ${hashes.package}`);
Expand All @@ -31,13 +31,13 @@ async function run() {
);

if (!inputs.noUpgradeStack) {
await core.group("Upgrade stack", async () => {
await core.group(":arrow_up: Upgrade stack", async () => {
await stack.upgrade();
});
}

const { stackYaml, stackRoot, stackWorks } = await core.group(
"Determine stack directories",
":file_folder: Determine stack directories",
async () => {
// Only use --stack-root, which (as of stack v2.15) won't load the
// environment and install GHC, etc. It's the only option currently safe
Expand All @@ -58,7 +58,7 @@ async function run() {
// caching. Use the resolver itself instead.
const cachePrefix = `${inputs.cachePrefix}${process.platform}/${stackYaml.resolver}`;

await core.group("Setup and install dependencies", async () => {
await core.group(":gear: Setup and install dependencies", async () => {
await withCache(
[stackRoot].concat(stackWorks),
getCacheKeys([`${cachePrefix}/deps`, hashes.snapshot, hashes.package]),
Expand All @@ -73,7 +73,7 @@ async function run() {
);
});

await core.group("Build", async () => {
await core.group(":building_construction: Build", async () => {
await withCache(
stackWorks,
getCacheKeys([
Expand All @@ -93,12 +93,12 @@ async function run() {
});

if (inputs.test) {
await core.group("Test", async () => {
await core.group(":detective: Test", async () => {
await stack.buildTest(inputs.stackBuildArgumentsTest);
});
}

await core.group("Set outputs", async () => {
await core.group(":incoming_envelope: Set outputs", async () => {
const stackQuery = await stack.query();
const compiler = stackQuery.compiler.actual;
const compilerVersion = compiler.replace(/^ghc-/, "");
Expand Down

0 comments on commit e771ab0

Please sign in to comment.