Skip to content

Commit

Permalink
use readlink
Browse files Browse the repository at this point in the history
  • Loading branch information
aakropotkin committed Jun 30, 2023
1 parent 5c01aca commit d1da92a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/compare-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ on:
paths:
- '**'
- '!**/README*'
- '!./.github/workflows/*'
- './.github/workflows/compare-nix.yml'
push:
branches: [main]
paths:
- '**'
- '!**/README*'
- '!./.github/workflows/*'
- './.github/workflows/compare-nix.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/trivial-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ on:
paths:
- '**'
- '!**/README*'
- '!./.github/workflows/*'
- './.github/workflows/trivial-test.yml'
push:
branches: [main]
paths:
- '**'
- '!**/README*'
- '!./.github/workflows/*'
- './.github/workflows/trivial-test.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -68,17 +72,14 @@ jobs:
echo "Installing deps" >&2;
flox install -e sqlite-dev pkg-config;
flox build ".#etc-profiles" --no-link --print-out-paths \
|xargs flox install -e sqlite-dev;
set -x;
flox build ".#etc-profiles";
readlink -f result*|xargs flox install -e sqlite-dev;
set +x;
# Have to work around a bunch of unset variables that get us killed
# when `set -eu; set -o pipefail;' is active.
runEnv() {
(
eval "$( flox activate -e sqlite-dev; )";
eval "$@";
);
}
runEnv() { flox activate -e sqlite-dev -- "$@"; }
echo "Activating env" >&2;
runEnv true;
Expand Down

0 comments on commit d1da92a

Please sign in to comment.