Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly handle timestamps for build targets #44

Merged
merged 20 commits into from
Dec 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@ jobs:
- uses: actions/checkout@v2
- name: make
run: make all CXX=${{ matrix.cxx }} CPPSTD=${{ matrix.cppstd }} -j 4
- name: mv
run: |
mkdir -p d/
mv bin/*.d d/
- name: upload bin
uses: actions/upload-artifact@v2
with:
name: bin-${{ matrix.cxx }}-${{ matrix.cppstd }}
path: bin/*
path: |
bin/*Main
bin/*Test
- name: upload dependencies
uses: actions/upload-artifact@v2
with:
name: dependencies-${{ matrix.cxx }}-${{ matrix.cppstd }}
path: d/*
path: bin/*.d
- name: test
run: make test

Expand Down Expand Up @@ -68,13 +66,26 @@ jobs:
- uses: actions/checkout@v2
- name: install valgrind
run: |
sudo apt-get update
sudo apt-get install -y valgrind
mkdir bin
- name: download bin
uses: actions/download-artifact@v2
with:
name: bin-${{ matrix.cxx }}-${{ matrix.cppstd }}
path: bin/*
path: bin/
- name: download dependencies
uses: actions/download-artifact@v2
with:
name: dependencies-${{ matrix.cxx }}-${{ matrix.cppstd }}
path: bin/
- name: touch
run: |
chmod +x bin/*{Main,Test}
touch bin
touch bin/*.d
touch bin/*Main
touch bin/*Test
- name: valgrind test
run: make valgrind -j 4

1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ VALGRIND := $(patsubst bin/%,valgrind/%,$(filter %Test,$(TARGETS)))
VALGRIND_ALL := $(VALGRIND)
# https://github.com/lxylxy123456/algorithms/pull/39/checks?check_run_id=1574645545
VALGRIND_ALL := $(filter-out valgrind/FordFulkersonTest,$(VALGRIND_ALL))
VALGRIND_ALL := $(filter-out valgrind/RelabelToFrontTest,$(VALGRIND_ALL))

all: $(TARGETS)

Expand Down