-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (43 loc) · 1.29 KB
/
dev-builds.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
# GitHub Actions workflow to build and create artifacts for the "dev" branch
name: Create dev artifacts
on:
push:
branches:
- dev
paths:
- ".github/workflows/**.yml"
- "src/**.rs"
- "./Cargo.toml"
- "./mpv/**.lib" # Will hopefully soon be removed when I finally get to create the damn lib file in a CI
- ".cargo/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
dev-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update
sudo apt install libmpv-dev gcc-mingw-w64 -y
rustup target add x86_64-pc-windows-gnu
- name: Build Linux and Windows bin
run: |
cargo build --release
cargo build --release --target=x86_64-pc-windows-gnu
- name: Rename artifacts
run: |
mv ./target/release/puddler puddler-${GITHUB_SHA::7}-dev
mv ./target/x86_64-pc-windows-gnu/release/puddler.exe puddler-${GITHUB_SHA::7}-dev.exe
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: puddler-artifacts
path: |
puddler-*-dev
puddler-*-dev.exe