-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (42 loc) · 1.39 KB
/
makefile.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
name: Makefile CI
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: dmcoles/amiga-evo-cicd
credentials:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
steps:
- uses: actions/checkout@v4
- name: run build
run: |
vamos -c /usr/amiga/.vamosrc --cwd esource: -V system:/usr/amiga -V esource:$GITHUB_WORKSPACE make build=release
- name: add build artifacts to publish
run: |
apk add lha
mkdir downloads
cp $GITHUB_WORKSPACE/rebuild downloads
cp $GITHUB_WORKSPACE/Rebuild.info downloads
cp $GITHUB_WORKSPACE/Rebuild_manual.txt downloads
cp $GITHUB_WORKSPACE/Rebuild_manual.txt.info downloads
cd downloads
lha a ../rebuild-nightly${{ github.sha }}.lha *
ls ../
- name: Get current date
id: date
run: |
echo "builddate={$(date +'%Y-%m-%d')}" >> $GITHUB_OUTPUT
- name: Update release files and title
uses: mini-bomba/create-github-release@v1.1.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: dev-build
name: automated dev build ${{ steps.date.outputs.builddate }}
files: rebuild-nightly${{ github.sha }}.lha