mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-02-16 10:41:01 +00:00
add git safe
This commit is contained in:
15
.github/workflows/build-debian-11.yml
vendored
15
.github/workflows/build-debian-11.yml
vendored
@@ -10,8 +10,8 @@ jobs:
|
||||
steps:
|
||||
- name: Install git
|
||||
run: |
|
||||
apt update -y
|
||||
apt install -y git
|
||||
apt-get update -y
|
||||
apt-get install -y git
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@@ -19,17 +19,14 @@ jobs:
|
||||
|
||||
- name: Git config safe directory
|
||||
shell: bash
|
||||
run: |
|
||||
git config --global --add safe.directory $(pwd)
|
||||
git config --global --add safe.directory $(pwd)/vcpkg
|
||||
git config --global --add safe.directory $(pwd)/deps/commandline
|
||||
|
||||
- name: Setup vcpkg
|
||||
uses: lukka/run-vcpkg@v11
|
||||
run: bash ./scripts/debian/1.5-git-safe.sh
|
||||
|
||||
- name: Install Dependencies
|
||||
run: bash ./scripts/debian/1-install-deps.sh
|
||||
|
||||
- name: Setup vcpkg
|
||||
uses: lukka/run-vcpkg@v11
|
||||
|
||||
- name: Create Build Environment
|
||||
run: bash ./scripts/debian/2-configure.sh
|
||||
|
||||
|
||||
@@ -4,6 +4,4 @@ set -ex
|
||||
|
||||
apt-get update -y
|
||||
|
||||
apt-get install -y liblua5.3-0 liblua5.3-dev
|
||||
apt-get install -y curl zip unzip tar
|
||||
apt-get install -y cmake make git g++
|
||||
apt-get install -y liblua5.3-0 liblua5.3-dev curl zip unzip tar cmake make git g++
|
||||
|
||||
7
scripts/debian/1.5-git-safe.sh
Normal file
7
scripts/debian/1.5-git-safe.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
git config --global --add safe.directory $(pwd)
|
||||
git config --global --add safe.directory $(pwd)/vcpkg
|
||||
git config --global --add safe.directory $(pwd)/deps/commandline
|
||||
Reference in New Issue
Block a user