File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 run-as : root
99 commands :
1010 - dnf update -y
11- - dnf install -y python cmake bash zsh unzip zstd xz git jq protobuf
11+ - dnf install -y python cmake bash zsh unzip git jq
1212 - dnf swap -y gnupg2-minimal gnupg2-full
1313 pre_build :
1414 commands :
@@ -27,28 +27,17 @@ phases:
2727 - curl --retry 5 --proto '=https' --tlsv1.2 -sSf https://mise.run | sh
2828 - mise install
2929 - eval "$(mise activate bash --shims)"
30- # Enable corepack for pnpm
31- # - corepack enable
3230 # Install python deps
3331 - pip3 install -r build-scripts/requirements.txt
3432 build :
3533 commands :
36- # Disable tests that need fish/shellcheck
37- - export AMAZON_Q_BUILD_SKIP_FISH_TESTS=1
38- - export AMAZON_Q_BUILD_SKIP_SHELLCHECK_TESTS=1
3934 - python3.11 build-scripts/qchatmain.py build
4035
4136artifacts :
4237 discard-paths : " yes"
4338 base-directory : " build"
4439 files :
45- # Bundles for desktop builds
46- - ./*.appimage
47- - ./*.deb
48- # Archives for minimal builds
4940 - ./*.tar.gz
50- - ./*.tar.xz
51- - ./*.tar.zst
5241 - ./*.zip
5342 # Hashes
5443 - ./*.sha256
Original file line number Diff line number Diff line change 1+ version : 0.2
2+
3+ env :
4+ shell : bash
5+
6+ 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
13+ pre_build :
14+ commands :
15+ - export HOME=/home/codebuild-user
16+ - export PATH="$HOME/.local/bin:$PATH"
17+ - mkdir -p "$HOME/.local/bin"
18+ # Create fish config dir to prevent rustup from failing
19+ - mkdir -p "$HOME/.config/fish/conf.d"
20+ # Install cargo
21+ - curl --retry 5 --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
22+ - . "$HOME/.cargo/env"
23+ - rustup toolchain install `cat rust-toolchain.toml | grep channel | cut -d '=' -f2 | tr -d ' "'`
24+ # Install cross only if the musl env var is set and not null
25+ - if [ ! -z "${AMAZON_Q_BUILD_MUSL:+x}" ]; then cargo install cross --git https://github.com/cross-rs/cross; fi
26+ # Install python/node via mise (https://mise.jdx.dev/continuous-integration.html)
27+ - curl --retry 5 --proto '=https' --tlsv1.2 -sSf https://mise.run | sh
28+ - mise install
29+ - eval "$(mise activate bash --shims)"
30+ # Install python deps
31+ - pip3 install -r build-scripts/requirements.txt
32+ build :
33+ commands :
34+ - python3.11 build-scripts/qchatmain.py build
35+
36+ artifacts :
37+ discard-paths : " yes"
38+ base-directory : " build"
39+ files :
40+ - ./*.tar.gz
41+ - ./*.zip
42+ # Hashes
43+ - ./*.sha256
44+ # Signatures
45+ - ./*.asc
46+ - ./*.sig
47+
You can’t perform that action at this time.
0 commit comments