-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,13 +96,17 @@ jobs: | |
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
|
||
steps: | ||
- name: Prepare build environment for macOS & Linux | ||
run: bash ./ci/prepare_build_environment.sh | ||
if: runner.os != 'Windows' | ||
- name: Run on node 16 | ||
run: | | ||
sed -i -e 's/mirrorlist/#mirrorlist/g' -e 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | ||
yum -y install curl | ||
- name: Prepare build environment for Windows | ||
run: ./ci/prepare_build_environment.ps1 | ||
if: runner.os == 'Windows' | ||
touch "$HOME/.bashrc" | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | ||
nvm install 16 | ||
if: runner.os == 'Linux' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -135,6 +139,14 @@ jobs: | |
~/.cargo/registry | ||
~/.cargo/git | ||
- name: Prepare build environment for macOS & Linux | ||
run: bash ./ci/prepare_build_environment.sh | ||
if: runner.os != 'Windows' | ||
|
||
- name: Prepare build environment for Windows | ||
run: ./ci/prepare_build_environment.ps1 | ||
if: runner.os == 'Windows' | ||
|
||
- name: Install CUDA toolkit for Windows | ||
uses: Jimver/[email protected] | ||
with: | ||
|
@@ -195,13 +207,17 @@ jobs: | |
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
|
||
steps: | ||
- name: Prepare build environment for macOS & Linux | ||
run: bash ./ci/prepare_build_environment.sh | ||
if: runner.os != 'Windows' | ||
- name: Run on node 16 | ||
run: | | ||
sed -i -e 's/mirrorlist/#mirrorlist/g' -e 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | ||
yum -y install curl | ||
- name: Prepare build environment for Windows | ||
run: ./ci/prepare_build_environment.ps1 | ||
if: runner.os == 'Windows' | ||
touch "$HOME/.bashrc" | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | ||
nvm install 16 | ||
if: runner.os == 'Linux' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -234,6 +250,14 @@ jobs: | |
~/.cargo/registry | ||
~/.cargo/git | ||
- name: Prepare build environment for macOS & Linux | ||
run: bash ./ci/prepare_build_environment.sh | ||
if: runner.os != 'Windows' | ||
|
||
- name: Prepare build environment for Windows | ||
run: ./ci/prepare_build_environment.ps1 | ||
if: runner.os == 'Windows' | ||
|
||
- name: Build release binary | ||
run: cargo build ${{ matrix.build_args }} --release --target ${{ matrix.target }} --package tabby | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters