forked from shivammathur/php5-ubuntu
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 1.06 KB
/
zstd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Cache ZSTD
on:
- workflow_dispatch
jobs:
cache:
container: ubuntu:${{ matrix.container }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container: [24.04, 22.04, 20.04]
if: "!contains(github.event.head_commit.message, 'skip-build')"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install requirements
run: apt-get update && apt-get install sudo curl make gcc jq unzip -y
- name: Get ZSTD_DIR
id: zstd
run: echo "::set-output name=ZSTD_DIR::$(curl -sL https://github.com/facebook/zstd/releases/latest | grep -Po "zstd-(\d+\.\d+\.\d+)" | head -n 1)"
- name: Add ZSTD
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
USER: ${{ github.repository_owner }}
run: bash scripts/install-zstd.sh
- name: Upload zstd Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ steps.zstd.outputs.zstd_dir }}-ubuntu${{ matrix.container }}
path: /opt/zstd