Fix cache and artifacts
This commit is contained in:
parent
e128779926
commit
c1f7fa5bf2
13
.github/workflows/build.yaml
vendored
13
.github/workflows/build.yaml
vendored
@ -14,6 +14,11 @@ jobs:
|
|||||||
arch: [linux/386, linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64, linux/ppc64le]
|
arch: [linux/386, linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64, linux/ppc64le]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Setup variables
|
||||||
|
run: |
|
||||||
|
ARCH=${{ matrix.arch }}
|
||||||
|
SAFE_ARCH=$(echo $ARCH | sed 's/\//\-/')
|
||||||
|
echo "SAFE_ARCH=$SAFE_ARCH" >> $GITHUB_ENV
|
||||||
- name: Install sudo package
|
- name: Install sudo package
|
||||||
run: |
|
run: |
|
||||||
(apt-get update || true) 2>/dev/null
|
(apt-get update || true) 2>/dev/null
|
||||||
@ -23,13 +28,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
- name: Cache ccache
|
- name: Cache ccache
|
||||||
id: cache-primes
|
id: cache-ccache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.ccache
|
path: ~/.ccache
|
||||||
key: ${{ runner.os }}-ccache-all
|
key: ${{ runner.os }}-${{ env.SAFE_ARCH }}-ccache-all
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-ccache-
|
${{ runner.os }}-${{ env.SAFE_ARCH }}-ccache-
|
||||||
- name: Install build tools
|
- name: Install build tools
|
||||||
run: sudo apt-get install -y make git zlib1g-dev libssl-dev gperf php-cli cmake clang-6.0 libc++-dev libc++abi-dev ccache
|
run: sudo apt-get install -y make git zlib1g-dev libssl-dev gperf php-cli cmake clang-6.0 libc++-dev libc++abi-dev ccache
|
||||||
- name: Build
|
- name: Build
|
||||||
@ -40,6 +45,6 @@ jobs:
|
|||||||
cmake --build . --target install -- -j4
|
cmake --build . --target install -- -j4
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: tdlight-${{ matrix.arch }}
|
name: tdlight-${{ env.SAFE_ARCH }}
|
||||||
path: tdlib/lib
|
path: tdlib/lib
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user