This repository has been archived on 2024-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
ux-survey/.github/workflows/linux.yml
Aravinth Manivannan 89e26de87d
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: bootstrap survey from showcase
2024-01-31 15:22:39 +05:30

53 lines
1.3 KiB
YAML

name: Build
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- master
- "*"
- '!gh-pages'
jobs:
build_and_test:
strategy:
fail-fast: false
matrix:
version:
- stable
name: ${{ matrix.version }} - x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ⚡ Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install ${{ matrix.version }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.version }}-x86_64-unknown-linux-gnu
profile: minimal
override: true
- name: build
run: make
- name: Login to DockerHub
if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'mCaptcha/showcase'
uses: docker/login-action@v1
with:
username: mcaptcha
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: publish docker images
if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'mCaptcha/showcase'
run: make docker-publish