Commit graph

81 commits

Author SHA1 Message Date
evandrocoan
d7df8750b7 Reset the GitHub Actions cache for pyenv for
Fix astroid update breaking build
https://github.com/ankitects/pylint/pull/1
2020-04-29 03:22:12 -03:00
evandrocoan
b5454e006f Fix macos not find gettex, msgfmt: command not found
https://github.com/ankitects/anki/runs/617116053?check_suite_focus=true#step:27:1244
Compiling *.po...
./scripts/build-mo-files: line 18: msgfmt: command not found
./scripts/build-mo-files: line 18: msgmerge: command not found
2020-04-25 05:17:18 -03:00
evandrocoan
88b37fff9d trailing-newlines.sh should exit with error code 1 otherwise
the script will not fail/stop.
2020-04-22 20:08:17 -03:00
evandrocoan
b9ac8d9a59 Fixed ripgrep not installing on ubuntu anymore
https://github.com/BurntSushi/ripgrep#installation
https://github.com/BurntSushi/ripgrep/issues/1232

N.B. Various snaps for ripgrep on Ubuntu are also available, but none of them seem to work right and generate a number of very strange bug reports that I don't know how to fix and don't have the time to fix. Therefore, it is no longer a recommended installation option.)
2020-04-20 20:28:38 -03:00
evandrocoan
c4e34bdf3b Attempt to fix macos cache breaking for no reason
https://github.com/ankitects/anki/pull/560/checks?check_run_id=590022813
2020-04-15 18:46:47 -03:00
evandrocoan
77e3280c94 Stop installing rename as it is already bundled 2020-04-15 04:19:54 -03:00
evandrocoan
aa7d8368a4 Fix caches always missing 2020-04-10 23:00:11 -03:00
evandrocoan
ccd7cc4379 Set checks.yml pyenv and pip wheels cache keys as multiline strings 2020-04-03 01:27:40 -03:00
evandrocoan
2cc12313dd Deprecated sdist wheels and pyqtwebengine as dependency 2020-04-02 22:56:48 -03:00
evandrocoan
7d1c5140a8 Set to build a source distribution instead of build distribution
for aqt on qt/Makefile, because .whl files are just zip simple
zip files and do not support dynamic versioning. Also, there is no
restriction for aqt to be shipped as source tarball because it does
not ship any binaries.
2020-04-02 22:56:37 -03:00
evandrocoan
793c31c32e Set to Windows build check to pass all wheels to pip at once 2020-04-02 22:56:29 -03:00
evandrocoan
fe4fc14f3e Fixed checks.yml hashFiles not using the correct glob pattern
This project requirements files are named .txt and .dev
2020-04-02 22:56:24 -03:00
evandrocoan
4f591235c7 Set to checks.yml install and import anki wheels
# Conflicts:
#	.github/workflows/checks.yml
2020-04-02 22:56:13 -03:00
evandrocoan
597fa88910 Fixed old cache making build fail
# Conflicts:
#	.github/workflows/checks.yml
2020-04-02 14:47:10 -03:00
evandrocoan
30107ab09d Created the GitHub Actions step Upload to PyPi to run only on
tagged releases of anki:
https://anki.tenderapp.com/discussions/ankidesktop/40025-anki-in-python-package-index
2020-04-02 02:57:34 -03:00
evandrocoan
9224290336 Re-enabled the rust cargo index and registry caches because
cargo was downloading them just for nothing.
https://github.com/ankitects/anki/pull 528
2020-03-27 02:21:48 -03:00
evandrocoan
399eb536a1 Disabled the caches of cargo registry, index and python wheels 2020-03-27 00:21:09 -03:00
evandrocoan
b9c89fbdff Created a fast build matrix for quickly running the Unit Tests 2020-03-26 19:43:16 -03:00
evandrocoan
e97801498f Moved RSPY_TARGET_DIR and CARGO_TARGET_DIR to the top 2020-03-26 03:04:47 -03:00
evandrocoan
52f45a52f6 Fixed misspelling Mac OS with a space on the build matrix 2020-03-26 02:46:18 -03:00
evandrocoan
b6af705817 Merged all workflows together using build matrixes 2020-03-26 02:11:34 -03:00
evandrocoan
6f8797fd69 Fixed checks.yml Mac OS gmake PATH being set on Ubuntu 2020-03-26 01:20:00 -03:00
evandrocoan
49a8743527 Fix Mac OS checks.yml caches being rebuilt by stop using
the CARGO_TARGET_DIR and CARGO_INDEX_DIR variables:
https://github.com/ankitects/anki/pull 528
2020-03-25 22:42:37 -03:00
evandrocoan
2862752ed2 Update make to use the new .SHELLFLAGS feature
https://github.com/ankitects/anki/pull 528
2020-03-25 19:05:31 -03:00
evandrocoan
eed315ddae Set to use ankitects/setup-protoc@master instead of the original
repository with a `repo-token` until know whether it is safe to
pass the GitHub token around:
https://github.com/actions/virtual-environments/issues 602
2020-03-25 19:05:31 -03:00
evandrocoan
a394199184 Fixed lower case of runs-on: macos-latest
Accordingly to the documentation the name is lower case:
https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
2020-03-25 19:05:31 -03:00
evandrocoan
069150fd82 Set curl to run silently, added missing double quotes and removed
trailing backslash on checks.yml
2020-03-25 00:05:49 -03:00
evandrocoan
964cc1a11a Merge remote-tracking branch 'danielelmes/master' into create_actions_for_windows_macos
# Conflicts:
#	.github/scripts/trailing-newlines.sh
#	.github/workflows/checks.yml
#	Makefile
#	pylib/Makefile
#	qt/Makefile
#	qt/tools/typecheck-setup.sh
#	rspy/Makefile
2020-03-24 22:49:49 -03:00
evandrocoan
9319aaeb39 Set to run first develop build and check rules 2020-03-24 22:28:46 -03:00
evandrocoan
abe8b6cd61 Merged mac_checks.yml and windows_checks.yml into checks.yml 2020-03-24 22:28:46 -03:00
evandrocoan
0c71e6a242 Renamed linux_checks.yml to checks.yml 2020-03-24 22:28:46 -03:00
evandrocoan
4e0b599003 Fixed bash call by bash using other bashes on the system PATH 2020-03-24 22:28:46 -03:00
evandrocoan
78295d1d14 Re-enabled the mac_checks.yml after fixing the rate limit issue 2020-03-24 22:28:46 -03:00
evandrocoan
330d695814 Fixed not all rust libraries being cached 2020-03-24 22:28:46 -03:00
Damien Elmes
711447aa35 possible CI fix 2020-03-25 09:45:50 +10:00
Damien Elmes
a842c3b00a use forked proto action 2020-03-24 15:50:40 +10:00
evandrocoan
d49e583d49 Appended a number by default on every cache key to easily force
its regeneration by hand.
2020-03-24 00:31:50 -03:00
evandrocoan
7804f15973 Fixed pyaudio and rename not being setup when pacman cache is used 2020-03-24 00:31:50 -03:00
evandrocoan
65601bf032 Added the develop rule to run first and install things
before running tests and the build to properly measure the total
time of each stage.
2020-03-24 00:31:50 -03:00
evandrocoan
b872254972 Moved the cache actions to the top of the file 2020-03-24 00:31:50 -03:00
evandrocoan
fc13151a48 Renamed the mac_checks.yml until it get fixed 2020-03-24 00:31:50 -03:00
evandrocoan
e08d4cd175 Cache pacman package manager and upload python wheels 2020-03-24 00:31:50 -03:00
evandrocoan
02d8728683 Created .github/workflows/mac_checks.yml 2020-03-24 00:31:46 -03:00
evandrocoan
e320548e3f Cache rust libraries 2020-03-23 19:51:23 -03:00
evandrocoan
4fcecaed9f Created the .github/workflows/windows.yml
# Conflicts:
#	.github/scripts/trailing-newlines.sh
#	Makefile
#	qt/tools/typecheck-setup.sh
#	react/Makefile
#	rspy/Makefile
#	svelte/Makefile
#	tslib/Makefile
2020-03-23 19:51:03 -03:00
evandrocoan
093af85c2e Merge remote-tracking branch 'danielelmes/master' into fix_tests_on_windows
# Conflicts:
#	.github/scripts/trailing-newlines.sh
2020-03-23 18:44:11 -03:00
Damien Elmes
6769edaa58 don't require trailing whitespace in .sql files 2020-03-21 07:49:44 +10:00
evandrocoan
5d75a0c9f1 Fixed moved comment line on qt/aqt/main.py, long variables names on
pylib/Makefile and qt/Makefile, and rg --version not going to /dev/null
on .github/scripts/trailing-newlines.sh
2020-03-18 11:36:50 -03:00
evandrocoan
bc627a4bcd Fixed trailing-newlines.sh not failing when rg is not installed 2020-03-17 19:48:15 -03:00
Damien Elmes
2864fc6b07 ignore .json files 2020-03-14 19:36:03 +10:00