Skip to content

Commit 54ed390

Browse files
committed
WIP
1 parent 42d83b0 commit 54ed390

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

build-config/buildspec-macos.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
version: 0.2
22

3-
env:
4-
shell: bash
5-
63
phases:
7-
install:
8-
run-as: root
9-
commands:
10-
- dnf update -y
11-
- dnf install -y python cmake bash zsh unzip git jq
12-
- dnf swap -y gnupg2-minimal gnupg2-full
134
pre_build:
145
commands:
15-
- export HOME=/home/codebuild-user
16-
- export PATH="$HOME/.local/bin:$PATH"
6+
- whoami
7+
- echo "$HOME"
8+
- echo "$SHELL"
9+
- pwd
10+
- ls
1711
- mkdir -p "$HOME/.local/bin"
12+
- export PATH="$HOME/.local/bin:$PATH"
1813
# Create fish config dir to prevent rustup from failing
1914
- mkdir -p "$HOME/.config/fish/conf.d"
2015
# Install cargo
16+
- export CARGO_HOME="$HOME/.cargo"
2117
- curl --retry 5 --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
2218
- . "$HOME/.cargo/env"
2319
- rustup toolchain install `cat rust-toolchain.toml | grep channel | cut -d '=' -f2 | tr -d ' "'`
@@ -26,12 +22,14 @@ phases:
2622
# Install python/node via mise (https://mise.jdx.dev/continuous-integration.html)
2723
- curl --retry 5 --proto '=https' --tlsv1.2 -sSf https://mise.run | sh
2824
- mise install
29-
- eval "$(mise activate bash --shims)"
25+
- eval "$(mise activate zsh --shims)"
3026
# Install python deps
31-
- pip3 install -r build-scripts/requirements.txt
27+
- python3 -m venv scripts/.env
28+
- source scripts/.env/bin/activate
29+
- pip3 install -r scripts/requirements.txt
3230
build:
3331
commands:
34-
- python3.11 build-scripts/qchatmain.py build
32+
- python3 scripts/qchatmain.py build --skip-lints --skip-tests --not-release
3533

3634
artifacts:
3735
discard-paths: "yes"

0 commit comments

Comments
 (0)