Skip to content

Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.1 #27

Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.1

Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.1 #27

Workflow file for this run

name: build:libs
on:
push:
branches: [ main ]
paths:
- .build/conf/libs/linux/compile.Dockerfile
- .github/workflows/libs.yml
pull_request:
paths:
- .build/conf/libs/linux/compile.Dockerfile
- .github/workflows/libs.yml
branches: [ main ]
jobs:
base:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v2
id: buildx
with:
install: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: lthn/build:libs-linux-base
file: .build/conf/libs/linux/compile.Dockerfile
libs:
runs-on: ubuntu-latest
needs: base
strategy:
max-parallel: 5
fail-fast: false
matrix:
build: [
libx, utils, cmake, boost, fontconfig
]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v2
id: buildx
with:
install: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
push: true
cache-from: ghcr.io/letheanVPN/build:lib-linux-${{ matrix.build }}
tags: lthn/build:lib-linux-${{ matrix.build }}
file: .build/conf/libs/linux/${{ matrix.build }}.Dockerfile
builder:
runs-on: ubuntu-latest
needs: libs
strategy:
max-parallel: 3
fail-fast: false
matrix:
build: [
linux, windows, android
]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v2
id: buildx
with:
install: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
push: true
context: .build/src
build-args: BUILD=${{ matrix.build }}
tags: ghcr.io/letheanVPN/build:${{ matrix.build }}
file: .build/conf/libs/${{ matrix.build }}.Dockerfile