Skip to content

Commit

Permalink
Build on push
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnedo committed Aug 15, 2024
1 parent 69021ef commit 64ce953
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 49 deletions.
69 changes: 20 additions & 49 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,21 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Check compilation

#name: Skate
#permissions: write-all
#on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "*" ]
#jobs:
# images:
# name: Images
# runs-on: ubuntu-latest
# strategy:
# matrix:
# include:
# - context: ./images/coredns
# image: ghcr.io/skateco/coredns
# steps:
# - name: Check out the repo
# uses: actions/checkout@v4
#
# - name: Log in to the Container registry
# uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
# with:
# images: ${{ matrix.image }}
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Build and push Docker images
# uses: docker/build-push-action@v5
# with:
# context: ${{ matrix.context }}
# file: ${{ matrix.context }}/Dockerfile
# platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
on:
push:
# only trigger on branches, not on tags
branches: '**'

jobs:
check: # Any action can contain multiple jobs
runs-on: ubuntu-latest # OS on which the job runs
steps: # Each job consists in a series of steps
- name: Checkout # Clone git repository
uses: actions/checkout@v3

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable

- name: Check that code can compile
run: cargo check # Run the `cargo check` command
- name: Compile
run: cargo build
File renamed without changes.

0 comments on commit 64ce953

Please sign in to comment.