Skip to content

Commit ba24c4f

Browse files
committed
setup ci using github actions
1 parent 3c5e9ba commit ba24c4f

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/build.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ "develop-pure" ]
6+
pull_request:
7+
branches: [ "develop-pure" ]
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
build_tag:
13+
runs-on: ubuntu-24.04
14+
timeout-minutes: 5
15+
outputs:
16+
build_tag: ${{ steps.tag_step.outputs.build_tag }}
17+
steps:
18+
- name: Checkout pull-request
19+
uses: actions/checkout@v4
20+
21+
- name: Get build tag
22+
id: tag_step
23+
run: |
24+
build_tag=$(date +%Y-%m-%d)_$(git rev-parse --short HEAD)
25+
echo "build_tag=$build_tag" >> "$GITHUB_OUTPUT"
26+
27+
build_debian_12_armhf:
28+
needs: build_tag
29+
timeout-minutes: 30
30+
outputs:
31+
build_tag: ${{ steps.tag_step.outputs.build_tag }}
32+
steps:
33+
- name: Checkout pull-request
34+
uses: actions/checkout@v4
35+
36+
- name: Generate Installers
37+
run: |
38+
rm -rf output
39+
./runme.sh debian_12_armhf
40+
41+
# - name: Publish to S3
42+
# uses: shallwefootball/[email protected]
43+
# with:
44+
# aws_key_id: ${{ secrets.IMAGES_S3_ACCESS }}
45+
# aws_secret_access_key: ${{ secrets.IMAGES_S3_SECRET }}
46+
# aws_bucket: ${{ secrets.IMAGES_S3_BUCKET }}
47+
# endpoint: ${{ secrets.IMAGES_S3_HOST }}
48+
# source_dir: output
49+
# destination_dir: Pure-Debian/${{ needs.build_tag.outputs.build_tag }}/12/armhf

0 commit comments

Comments
 (0)