use bash when setting up build environment

This commit is contained in:
morguldir 2025-04-19 06:00:29 +02:00
parent 0c0c1229fe
commit 4121482770
No known key found for this signature in database
GPG key ID: 5A6025D4F6E7A8A3

View file

@ -112,25 +112,25 @@ jobs:
if: ${{ env.ACT_EXEC }} if: ${{ env.ACT_EXEC }}
run: | run: |
echo "aaaa" echo "aaaa"
nix profile install nixpkgs#nix-output-monitor nix profile install nixpkgs#nix-output-monitor -v
sudo cp $(which nom) /usr/bin/nom-nix sudo cp $(which nom) /usr/bin/nom-nix
file $(which nom) file $(which nom)
lsblk lsblk
- name: Prepare build environment - name: Prepare build environment
shell: bash
run: | run: |
echo $SHELL
df -h /nix/var/nix/db df -h /nix/var/nix/db
du -shc /nix/* du -had 1 /nix/
#du -shc /root/.profile/* if ! type nom &> /dev/null; then
if ! command -v nom &> /dev/null; then
sudo cp $(which nix) /usr/bin/nom-or-nix sudo cp $(which nix) /usr/bin/nom-or-nix
fi fi
echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc" echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc"
nix profile install --inputs-from . nixpkgs#direnv nixpkgs#nix-direnv nix profile install -v --inputs-from . nixpkgs#direnv nixpkgs#nix-direnv
direnv allow direnv allow
du -shc /nix/* if type nom &> /dev/null; then
if command -v nom &> /dev/null; then
nom develop .#all-features --command true nom develop .#all-features --command true
else else
nix develop .#all-features --command true nix develop .#all-features --command true
@ -154,6 +154,7 @@ jobs:
cache-targets: "true" cache-targets: "true"
- name: Run CI tests - name: Run CI tests
shell: bash
env: env:
CARGO_PROFILE: "test" CARGO_PROFILE: "test"
run: | run: |
@ -280,6 +281,7 @@ jobs:
cache-targets: "true" cache-targets: "true"
- name: Build static ${{ matrix.target }}-all-features - name: Build static ${{ matrix.target }}-all-features
shell: bash
run: | run: |
if [[ ${{ matrix.target }} == "x86_64-linux-musl" ]] if [[ ${{ matrix.target }} == "x86_64-linux-musl" ]]
then then
@ -329,6 +331,7 @@ jobs:
fi fi
- name: Build static debug ${{ matrix.target }}-all-features - name: Build static debug ${{ matrix.target }}-all-features
shell: bash
run: | run: |
if [[ ${{ matrix.target }} == "x86_64-linux-musl" ]] if [[ ${{ matrix.target }} == "x86_64-linux-musl" ]]
then then