-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (30 loc) · 1.1 KB
/
ubuntu22.04-gcc11-x64.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
32
name: Ubuntu 22.04 gcc 11 x64
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: CI Variables
id: vars
run: echo "::set-output name=docker_tag::$(git rev-parse --abbrev-ref ${{ github.head_ref || github.ref || 'HEAD' }} | sed 's/[^a-z0-9_-]/__/gi')"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build dependencies
id: kokkos-resilience-deps
uses: docker/build-push-action@v4
with:
push: false
tags: kokkos-resilience-deps:${{ steps.vars.outputs.docker_tag }}
context: .
file: ./ci/ubuntu-gcc11-x64.dockerfile
build-args: BASE=ubuntu:22.04
cache-from: type=gha
cache-to: type=gha,mode=max
outputs: type=docker,dest=/tmp/kokkos-resilience-deps.tar
- name: Build and Test
env:
DOCKER_IMAGE_TAG: ${{ steps.vars.outputs.docker_tag }}
run: |
docker load --input /tmp/kokkos-resilience-deps.tar
docker compose run build-deps-kr-ubuntu