Skip to content

Replace colon with dash in timestamp variables #1146

Replace colon with dash in timestamp variables

Replace colon with dash in timestamp variables #1146

Workflow file for this run

name: Ubuntu CI
on:
workflow_dispatch:
push:
branches: [master, dev]
pull_request:
types: [opened, reopened, synchronize]
jobs:
ubuntu:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
env:
NPROC: 2
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Setup cache
uses: actions/cache@v2
with:
# Ref: https://github.com/apache/incubator-mxnet/pull/18459/files
path: ~/.ccache
# We include the commit sha in the cache key, as new cache entries are
# only created if there is no existing entry for the key yet.
key: ${{ runner.os }}-ccache-${{ github.sha }}
# Restore any ccache cache entry, if none for
# ${{ runner.os }}-ccache-${{ github.sha }} exists.
# Common prefix will be used so that ccache can be used across commits.
restore-keys: |
${{ runner.os }}-ccache
- name: Set up Python version
uses: actions/setup-python@v2
with:
python-version: "3.10"
# Pre-installed 18.04 packages: https://git.io/JfHmW
- name: Install ccache
run: |
sudo apt-get --yes install ccache
ccache -M 2G # GitHub's total cache limit is 5GB for all OSes.
- name: Config and build
run: |
PATH=/usr/lib/ccache:$PATH
ccache -s
./ci/run_ci.sh
ccache -s