Update provider llama2 #585
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
name: ubuntu-gcc13 | |
on: | |
push: | |
branches: ["main", "dev"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
steps: | |
- name: Installation | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev p7zip gobjc g++-13 wget sudo libcurl4-openssl-dev libnss3 nss-plugin-pem ca-certificates | |
wget https://github.com/lwthiker/curl-impersonate/releases/download/v0.6.0-alpha.1/libcurl-impersonate-v0.6.0-alpha.1.x86_64-linux-gnu.tar.gz | |
sudo mv libcurl-impersonate-v0.6.0-alpha.1.x86_64-linux-gnu.tar.gz /usr/lib64 | |
cd /usr/lib64 | |
sudo tar -xvf libcurl-impersonate-v0.6.0-alpha.1.x86_64-linux-gnu.tar.gz | |
cd - | |
# curl -kfsSL https://xmake.io/shget.text | bash -s v2.8.6 | |
- uses: xmake-io/github-action-setup-xmake@v1 | |
with: | |
xmake-version: v2.8.6 | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: build | |
run: | | |
export XMAKE_ROOT="y" | |
# source ~/.xmake/profile | |
g++-13 -v | |
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH | |
export LIBRARY_PATH=/usr/lib64:$LIBRARY_PATH | |
export CXX=g++-13 | |
export CC=gcc-13 | |
xmake build -y | |
xmake install -o . | |
ldd ./bin/cpp-freegpt-webui | |
- name: Docker login for dev | |
if: github.ref_name == 'dev' && github.repository_owner == 'fantasy-peak' | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Docker login for main | |
if: github.ref_name == 'main' && github.repository_owner == 'fantasy-peak' | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Build the Docker image to dev | |
if: github.ref_name == 'dev' && github.repository_owner == 'fantasy-peak' | |
run: | | |
docker build . -t ${{ secrets.DOCKERHUB_USERNAME }}/freegpt:dev | |
cd tools | |
docker build . -t ${{ secrets.DOCKERHUB_USERNAME }}/freegpt-zeus:dev | |
cd .. | |
- name: Build the Docker image to main | |
if: github.ref_name == 'main' && github.repository_owner == 'fantasy-peak' | |
run: | | |
docker build . -t ${{ secrets.DOCKERHUB_USERNAME }}/freegpt:latest | |
cd tools | |
docker build . -t ${{ secrets.DOCKERHUB_USERNAME }}/freegpt-zeus:latest | |
cd .. | |
- name: Docker image push to dev | |
if: github.ref_name == 'dev' && github.repository_owner == 'fantasy-peak' | |
run: | | |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/freegpt:dev | |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/freegpt-zeus:dev | |
- name: Docker image push main | |
if: github.ref_name == 'main' && github.repository_owner == 'fantasy-peak' | |
run: | | |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/freegpt:latest | |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/freegpt-zeus:latest |