Bump actions/checkout from 3 to 4 #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Run tests" | |
on: | |
push | |
jobs: | |
test-memlock-tool: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update apt repos | |
run: | | |
sudo apt-get -y update | |
- name: Install basics for compilation | |
run: | | |
sudo apt-get -y install build-essential | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Compile memlock tool | |
run: | | |
cd memlock | |
make | |
- name: Test memlock tool | |
run: | | |
sudo sh -c "ulimit -l $(( 1024 * 1024 * 300 )) && timeout --signal=INT --preserve-status 10 memlock/memlock $(( 1024 * 1024 * 100 ))" | |