Skip to content

Commit e18abaa

Browse files
committed
Build on CI when pushed to main
1 parent a192063 commit e18abaa

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
push:
3+
branches: [ main ]
4+
jobs:
5+
build:
6+
runs-on: [ self-hosted, macOS, ARM64 ]
7+
steps:
8+
- uses: actions/checkout@v3
9+
10+
- name: Setup Rust Toolchain
11+
uses: ATiltedTree/setup-rust@v1
12+
with:
13+
rust-version: stable
14+
15+
- name: Build
16+
run: cargo build --release
17+
18+
- name: Upload Artifact
19+
uses: actions/upload-artifact@v3
20+
with:
21+
name: swift-precompiler
22+
path: target/release/swift-precompiler
23+
24+
- uses: sarisia/actions-status-discord@v1
25+
if: always()
26+
with:
27+
webhook: ${{ secrets.DISCORD_WEBHOOK }}
28+
status: ${{ job.status }}
29+
title: "deploy"
30+
description: "Build swift-precompiler"
31+
url: "https://github.com/ciderapp/swift-precompiler/actions"
32+
username: GitHub Actions
33+
avatar_url: "https://avatars.githubusercontent.com/u/87914859?s=200&v=4"

0 commit comments

Comments
 (0)