Fixed build caching tup.
This commit is contained in:
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
@@ -11,19 +11,21 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
path: emulator
|
||||||
|
|
||||||
- name: Clean repo of artifacts
|
- name: Clean repo of artifacts
|
||||||
run: git clean -f
|
run: |
|
||||||
|
git clean -f
|
||||||
|
|
||||||
- name: Cache tup build dependency
|
- name: Cache tup build dependency
|
||||||
id: cache-tup
|
id: cache-tup
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: "${HOME}/dependencies/gittup"
|
path: dependencies/gittup
|
||||||
key: ${{ runner.OS }}-gittup
|
key: ${{ runner.OS }}-gittup
|
||||||
|
|
||||||
- name: Install tup build dependency
|
- name: Install tup build dependency
|
||||||
if: steps.cache-tup.outputs.cache-git != 'true'
|
if: steps.cache-tup.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
sudo apt install libfuse-dev
|
sudo apt install libfuse-dev
|
||||||
cd "${HOME}"
|
cd "${HOME}"
|
||||||
@@ -31,11 +33,13 @@ jobs:
|
|||||||
cd dependencies/gittup
|
cd dependencies/gittup
|
||||||
./build.sh
|
./build.sh
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
|
mkdir -p "${GITHUB_WORKSPACE}/dependencies/gittup"
|
||||||
|
cp "${HOME}/dependencies/gittup/build/tup" "${GITHUB_WORKSPACE}/dependencies/gittup/"
|
||||||
|
|
||||||
- name: Install gmp library
|
- name: Install gmp library
|
||||||
run: sudo apt-get install libgmp-dev
|
run: sudo apt-get install libgmp-dev
|
||||||
|
|
||||||
- name: Run a build
|
- name: Run a build
|
||||||
run: |
|
run: |
|
||||||
"${HOME}/dependencies/gittup/build/tup" init
|
"${GITHUB_WORKSPACE}/dependencies/gittup/tup" init
|
||||||
"${HOME}/dependencies/gittup/build/tup"
|
"${GITHUB_WORKSPACE}/dependencies/gittup/tup"
|
||||||
|
|||||||
Reference in New Issue
Block a user