-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/add tests on archlinux (#16)
* wip * wip * update-name * update-name * wip
- Loading branch information
1 parent
b8d7368
commit c5de2af
Showing
9 changed files
with
76 additions
and
8 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Archlinux Env | ||
|
||
on: | ||
push: | ||
branches: [ main, dev, develop ] | ||
pull_request: | ||
branches: [ main, dev, develop ] | ||
|
||
jobs: | ||
Build-and-Test: | ||
runs-on: ubuntu-24.04 | ||
container: | ||
image: archlinux | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install build tools | ||
run: | | ||
pacman -Syy | ||
pacman -S --noconfirm coreutils make gcc cmake time | ||
pacman -S --noconfirm python-numpy python-matplotlib | ||
- name: Build googletest | ||
run: | | ||
make ./googletest-master/build/lib/libgtest.a | ||
- name: Build SSTD | ||
run: | | ||
make FORCE_TO_MAKE_SSTD | ||
- name: Build SSTD TESTS | ||
run: | | ||
make FORCE_TO_MAKE_TEST_EXE | ||
- name: Build the others | ||
run: | | ||
make | ||
- name: Run tests | ||
run: | | ||
./exe |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM archlinux | ||
|
||
RUN pacman -Syy | ||
RUN pacman -S --noconfirm \ | ||
coreutils \ | ||
make \ | ||
gcc \ | ||
cmake \ | ||
python-numpy \ | ||
python-matplotlib \ | ||
time |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
SCRIPT_DIR=`cd $(dirname ${BASH_SOURCE:-$0}); pwd` | ||
docker build -t sstd_archlinux $SCRIPT_DIR | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
IMAGE_ID=$(docker images | grep 'sstd_archlinux' | awk '{print $3}') | ||
echo $IMAGE_ID | ||
docker rmi ${IMAGE_ID} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
docker run \ | ||
-u `id -u`:`id -g` \ | ||
-v /etc/group:/etc/group:ro \ | ||
-v /etc/passwd:/etc/passwd:ro \ | ||
-v /etc/shadow:/etc/shadow:ro \ | ||
-v /etc/sudoers.d:/etc/sudoers.d:ro \ | ||
--rm -it --name sstd_fedora \ | ||
-v $PWD:/home -w /home \ | ||
sstd_archlinux:latest /bin/bash | ||
|
||
# --user root \ |