Skip to content

Commit

Permalink
Build on CI when pushed to main
Browse files Browse the repository at this point in the history
  • Loading branch information
lockieluke committed Jan 13, 2024
1 parent a192063 commit e18abaa
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches: [ main ]
jobs:
build:
runs-on: [ self-hosted, macOS, ARM64 ]
steps:
- uses: actions/checkout@v3

- name: Setup Rust Toolchain
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable

- name: Build
run: cargo build --release

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: swift-precompiler
path: target/release/swift-precompiler

- uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
title: "deploy"
description: "Build swift-precompiler"
url: "https://github.com/ciderapp/swift-precompiler/actions"
username: GitHub Actions
avatar_url: "https://avatars.githubusercontent.com/u/87914859?s=200&v=4"

0 comments on commit e18abaa

Please sign in to comment.