forked from Spotifyd/spotifyd
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 978 Bytes
/
new_cd.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
name: Continuous Deployment (new)
on:
push:
tags:
- 'v*.*.*'
branches:
- master
- cd_rework_new
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Create compose file
run: |
echo 'services:\
build-container:
image: rust:1.79-bookworm
platform: linux/arm64
command: bash -c "
apt-get update &&
apt-get install -y \
libasound2-dev \
libssl-dev \
pkg-config &&
cargo build --release"
working_dir: /build
volumes:
- ./:/build' > docker-compose.yml
- name: Run compose file
run: docker compose up