Skip to content

Commit

Permalink
add git safe
Browse files Browse the repository at this point in the history
  • Loading branch information
lionkor committed Dec 5, 2023
1 parent b0e011c commit 96ce0e0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build-debian-11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,23 @@ 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:
submodules: 'recursive'

- 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

Expand Down
4 changes: 1 addition & 3 deletions scripts/debian/1-install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 7 additions & 0 deletions scripts/debian/1.5-git-safe.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 96ce0e0

Please sign in to comment.