forked from popcorn-kernel/popcorn
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.19 KB
/
binary.yml
File metadata and controls
40 lines (35 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Binary (via GatoBot)
on:
workflow_dispatch:
push:
branches: main
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
override: true
components: rustfmt, clippy
- name: Add nightly-x86_64
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Install deps
run: ./scripts/configure.sh
#- name: Build
# run: cargo build --verbose --release
- name: Compress Diskimg
run: ./scripts/compress-diskimg.sh
#- name: Generate SHA256 sum
# run: sha256sum target/x86_64-arch/debug/bootimage-popcorn.bin.zst > sha256sum.txt
- name: Send to Discord
run: |
curl \
-F "payload_json={\"content\": \"New build of popcorn! Branch: $GITHUB_REF, Timestamp: <t:$(date +%s)>\n\`\`\`$(sha256sum target/x86_64-arch/debug/bootimage-popcorn.bin.zst)\`\`\`\"}" \
-F "file1=@target/x86_64-arch/debug/bootimage-popcorn.bin.zst" \
${{ secrets.WEBHOOK_URL }}