Commit Graph

44 Commits

Author SHA1 Message Date
Takayuki Matsuoka
07e3fd8b64 Add ubuntu-22.04 and the latest C/C++ compilers for Linux 2022-08-12 13:01:47 +09:00
Takayuki Matsuoka
d0460e4aaa Add freestanding test to specific target in ci.yml
The 'freestanding' flag indicates a capability of compiling and executing freestanding code.
Currently it requires Linux, x86_64 and (relatively newer) gcc/g++.
2022-08-08 18:11:05 +09:00
Dominique Pelle
3347485307 fix: various typos 2022-07-31 17:47:00 +02:00
Yann Collet
24803605c9 add dedicated install test
per platform
2022-07-17 21:47:10 +02:00
Yann Collet
1db2e64a0d update CI make test to employ -j
for faster parallel processing
2022-07-17 21:44:32 +02:00
Yann Collet
a9a0a967cf
Merge pull request #1117 from lz4/testConsole
refactor test ensuring that make test does not depend on console status
2022-07-15 05:36:56 -07:00
Yann Collet
0e9ab694f2 refactor test ensuring that make test does not depend on console status
Fix #990
2022-07-15 12:13:45 +02:00
Yann Collet
684ebfd4be Test support of Standard Makefile Variables
to detect issues such as #958
2022-07-15 11:29:50 +02:00
Yann Collet
4e9c680c80 minor update of .github/workflows README 2022-07-14 21:20:51 +02:00
Yann Collet
2480d9cd8a enable -m32 & -mx32 tests on all version of clang >= 4.0
clang 3.9 fails -m32 & -mx32,
likely because it lacks the corresponding abi/library support.
Oh well, it's not that important.
Supporting all clang >= 4.0 is great enough for these tests.
2022-07-14 01:46:29 +02:00
Yann Collet
e17f7a2241 tested clang-12 with -m32 & -mx32 2022-07-13 21:41:25 +02:00
Yann Collet
331f7e29f1 restore gcc-11 tests for -m32 and -mx32 2022-07-13 18:41:17 +02:00
Yann Collet
d577589c31 added abiTests to github 2022-07-12 19:41:56 +02:00
Yann Collet
58fd9d08c8 add ossfuzz tests to Github Actions 2022-07-10 02:02:12 -07:00
Yann Collet
63df16db1b
Merge pull request #1088 from turrisxyz/Pinned-Dependencies-GitHub
chore: Set permissions for GitHub actions
2022-07-01 14:54:41 -07:00
Yann Collet
b2f6147194 test lz4 compression on a block device
block device created as part of the test.
Requires sudo rights.
2022-06-30 19:35:52 -07:00
nathannaveen
1b5a638155 chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
2022-05-31 00:58:17 +00:00
Takayuki Matsuoka
32ffb163e1 Add virtual environment checking for Ubuntu 22.04
GitHub Actions recently provides public beta version of Ubuntu 22.04
https://github.com/actions/virtual-environments/issues/5490

This change set just adds environment checking matrix for further changes.
2022-05-07 16:57:48 +09:00
Yann Collet
5b138c01b4
Merge pull request #1064 from tristan957/meson
Fixup meson build
2022-02-15 18:26:49 -08:00
Eddy Jansson
79c0b7ae50 Update links in comments.
The files these comments point to were renamed in
https://github.com/actions/virtual-environments/pull/4794
for whatever reason.
2022-02-12 21:32:23 +01:00
Tristan Partin
6c1a39e701
Fixup meson build
The meson build had gotten a little out of hand. It needed to be cleaned
up and have its errors fixed. This should enable lz4 to switch to Meson
at any time should the need ever arise.
2022-02-09 12:04:53 -06:00
Yann Collet
4f984e45a5 added target test-compile-with-lz4-memory-usage
and run it in GA CI
2022-01-31 14:51:20 -08:00
Takayuki Matsuoka
d93bc67c46 Remove invalid variable 2021-09-07 01:07:06 +09:00
Takayuki Matsuoka
099d9a28a0 Add test for examples/ 2021-09-07 01:03:47 +09:00
a1346054
3e99d07bc0 trim excess whitespace 2021-08-21 22:24:52 +00:00
Nate
b13108a5b6
ci: sh -> bash 2021-08-08 19:11:44 -04:00
Nate
9a511781d6
ci: pass script through sh 2021-08-08 16:23:00 -04:00
Nate
56ef1696fd
ci(.github/workflows/ci.yml): fix invalid yaml
fixed syntax error
2021-08-08 15:32:05 -04:00
Nate
28eff0c77e
ci(.github/workflows/ci.yml): run unicode lint under github actions 2021-08-08 15:16:31 -04:00
Eddy Jansson
b3fda2d21e All compilers now support stdc11.
With the removal of Ubuntu 16.04, all compilers in
in the matrix supports c11, so remove this column
from the matrix, and unconditionally test this.
2021-07-31 21:19:10 +02:00
Eddy Jansson
05245113c7 All compilers now support stdc90.
With the removal of Ubuntu 16.04, all compilers in
in the matrix supports c90, so remove this column
from the matrix, and unconditionally test this.
2021-07-31 21:07:40 +02:00
Eddy Jansson
6f54156783 Remove ubuntu-16.04 as a test platform.
The Ubuntu 16.04 environment is being removed by github
on September 20, 2021. They will induce 'brownouts'
starting from September 6 to get clients to move on.

This change removes testing of GCC versions prior to 4.8,
and clang versions prior to 3.9

Ref: https://github.com/actions/virtual-environments/issues/3287
2021-07-31 20:59:23 +02:00
Takayuki Matsuoka
a9b93547a0 Fix package related errors
Add explicit "apt-get update" for all test cases which uses "apt-get".
- It may help to stabilize fetching from apt archive.

As for "CC=gcc-11"
- Add "g++-11" package.
- "g++-11" has been removed from the default virtual environment.
  https://github.com/actions/virtual-environments/issues/3467
2021-06-16 12:44:48 +09:00
Takayuki Matsuoka
f0ea466c36 Fix error in ci.yml
Fix the following error
```
lz4 CI : .github#L1
Error when evaluating 'runs-on' for job 'lz4-check-tag'. (Line: 593, Col: 14): Unexpected value ''
```
2021-06-02 04:59:23 +09:00
Takayuki Matsuoka
5b01b5805a Update document for .github/workflows 2021-06-01 20:03:48 +09:00
Takayuki Matsuoka
8d4005a1ca Add label for checkTag test 2021-05-31 13:54:58 +09:00
Takayuki Matsuoka
44b8b10f84 Add make -C tests checkTag to ci.yml 2021-05-31 13:28:49 +09:00
Takayuki Matsuoka
025c3ce8f9 Enable c_standards as per #994 2021-05-31 10:04:50 +09:00
Takayuki Matsuoka
cccdc8fe21 Enable cxxtest as per #993 2021-05-31 10:03:28 +09:00
Takayuki Matsuoka
243f6b5233 Improve CI script
## Added compilers

- gcc: 4.[4678], 5, 6, 11
- clang: 3.[56789], 4, 5, 12

## Known issue

- make -C tests test-lz4c32
  - Fails with all versions of clang.  See #991 for details.
- CFLAGS='-O3 -mx32' make -C tests test-lz4c32
  - Fails with all versions of clang
  - Fails with gcc-11
- `make cxxtest`
  - Disabled for now.  Will be enabled after #993.
- `make c_standards_c90`, `make c_standards_c11`
  - Disabled for now.  Will be enabled after #994.

## Difference with `.travis.yml`

The following tests are not included yet.

- name: Compile OSS-Fuzz targets
- name: tag build

The following tests won't be included due to lmitation of the CI environment.

- name: aarch64 real-hw tests
- name: PPC64LE real-hw tests
- name: IBM s390x real-hw tests

Except above, all other features in `.travis.yml` has been included in this change set.

The following post describes details.
2021-05-30 23:41:43 +09:00
Takayuki Matsuoka
54b695800d Temporary ignore make usan
We must enable this test when all make usan errors will be resolved properly.
2021-05-28 15:28:59 +09:00
Takayuki Matsuoka
0276f0b120 Add GitHub Actions script ci.yml 2021-05-27 21:18:58 +09:00
Yann Collet
49b3ad4bd4 Update issue templates 2020-06-13 14:31:15 -07:00
Bimba Shrestha
c5af6992f5 Adding issue templates 2020-03-03 13:29:57 -08:00