Skip to content

Commit

Permalink
feat(github): release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
royreznik committed Oct 2, 2024
1 parent 2a541b4 commit 0493fa7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release
on:
push:
branches:
- master
paths:
- test_dent*
- dent*

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: tests
run: make test
- name: create Release
uses: softprops/action-gh-release@v1
with:
files: |
dent
static-dent
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ dkms.conf
# Custom
dent
test_dent
static-dent
.idea/
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,30 @@ CFLAGS = -Wall -pthread

OBJ = main.o dent.o

all: dent
all: dent static-dent

dent: $(OBJ)
$(CC) $(CFLAGS) -o dent $(OBJ)

static-dent: $(OBj)
$(CC) $(CFLAGS) -static -o static-dent $(OBJ)

main.o: main.c dent.h
$(CC) $(CFLAGS) -c main.c

dent.o: dent.c dent.h
$(CC) $(CFLAGS) -c dent.c


test_dent: test_dent.c dent
$(CC) -Wall -o test_dent test_dent.c


.PHONY:test
test: test_dent
./test_dent

image:
docker build . --tag

.PHONY: clean
clean:
rm -f $(OBJ) dent test_dent
rm -f $(OBJ) static-dent dent test_dent

0 comments on commit 0493fa7

Please sign in to comment.