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

The new pull request for my changes #606

Open
wants to merge 55 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2f0497e
Create 1.txt
Jun 29, 2022
a58a7af
Testing
qishenli Jun 29, 2022
619c432
Testing 2
qishenli Jun 29, 2022
ed0b035
Removing Test
qishenli Jun 29, 2022
f0e9719
Changing distro file and remove installing python for Ubuntu
qishenli Jun 29, 2022
9ba918c
Fixing For graphviz
qishenli Jun 30, 2022
de98644
Noninteractive Added
qishenli Jun 30, 2022
9902f10
Adding some comments
qishenli Jun 30, 2022
93eefcc
Update distro-deps.sh
Jul 1, 2022
e81b847
Update distro-deps.sh
Jul 1, 2022
8ff0720
Testing
qishenli Jul 1, 2022
d880c68
Testing
qishenli Jul 1, 2022
d80ac9a
Testing
qishenli Jul 1, 2022
97b3ba8
Whatever
qishenli Jul 1, 2022
ac1cb64
Hello World yaml file
qishenli Jul 1, 2022
f4b058e
Learning...
qishenli Jul 2, 2022
580c25e
Learning Again...
qishenli Jul 2, 2022
e736250
Hi
qishenli Jul 2, 2022
83ae758
A
qishenli Jul 2, 2022
b8cfdff
A
qishenli Jul 2, 2022
d68ccf2
Hello
qishenli Jul 2, 2022
d2edb2d
Hi
qishenli Jul 2, 2022
9c70d6e
HOPE
qishenli Jul 2, 2022
f65ef7b
First Version
qishenli Jul 2, 2022
d177b0e
Second Version
qishenli Jul 2, 2022
df04ac2
Third Version
qishenli Jul 2, 2022
f19c785
T
qishenli Jul 2, 2022
433ac8b
T
qishenli Jul 2, 2022
e128955
T
qishenli Jul 2, 2022
de0ed6d
T
qishenli Jul 2, 2022
3d4a475
T
qishenli Jul 2, 2022
7ff7891
T
qishenli Jul 2, 2022
c7a11ae
T
qishenli Jul 2, 2022
52d1560
T
qishenli Jul 2, 2022
2833f7f
T
qishenli Jul 2, 2022
66f1bc9
T
qishenli Jul 2, 2022
5aa7552
T
qishenli Jul 2, 2022
1cdba72
Double Operating Systems
qishenli Jul 2, 2022
085c051
Double Operating Systems
qishenli Jul 2, 2022
10d9836
Double Operating Systems
qishenli Jul 2, 2022
849ae5f
Double Operating Systems
qishenli Jul 2, 2022
f345c8a
Double Operating Systems
qishenli Jul 2, 2022
f4fa044
Double Operating Systems
qishenli Jul 2, 2022
881001d
Double Operating Systems
qishenli Jul 2, 2022
5204f31
Double Operating Systems
qishenli Jul 2, 2022
5bf22a6
Final Version
qishenli Jul 2, 2022
486992a
Testing
qishenli Jul 2, 2022
d6a0fb2
Testing
qishenli Jul 2, 2022
272b17e
Test For Docker
qishenli Jul 2, 2022
b478766
Test For Docker
qishenli Jul 2, 2022
a942159
Test For Docker
qishenli Jul 2, 2022
f618c4d
Test For Docker
qishenli Jul 2, 2022
8510ea3
Test For Docker
qishenli Jul 2, 2022
67b0037
Test For Docker
qishenli Jul 2, 2022
c07fb69
Merge pull request #1 from qishenli/studying-actions
Jul 2, 2022
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
9 changes: 9 additions & 0 deletions .github/workflows/experiments.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: GitHub Actions Demo
on: [push]
jobs:
Pash-Compatibility-Check:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- run: |
sudo docker --version
24 changes: 24 additions & 0 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: GitHub Actions Demo
on: [push]
jobs:
Pash-Compatibility-Check-Ubuntu:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-18.04, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- run: |
sudo touch /.githubenv
sudo -E ./scripts/distro-deps.sh -o
sudo -E ./scripts/setup-pash.sh -o
./pa.sh ./evaluation/intro/hello-world.sh
Pash-Compatibility-Check-Fedora:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
sudo docker build -f scripts/docker/fedora-two/Dockerfile -t testing .



Empty file added example.txt
Empty file.
21 changes: 19 additions & 2 deletions scripts/distro-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,24 @@ case "$distro" in
echo "|-- running apt update..."
$SUDO apt-get update &> $LOG_DIR/apt_update.log
echo "|-- running apt install..."
$SUDO apt-get install -y $pkgs &>> $LOG_DIR/apt_install.log

# Forming an array for packages and installing one by one
pkgs=($(echo "$pkgs" | awk '{print $0}'))

# Install packages one by one.(When meet python, skip it)
for pkg in ${pkgs[@]}
do
echo $pkg

# When meet python, skip it.
if [[ "$pkg" == "python" ]]; then
echo "This package is outdated and not being installed."
continue
fi

# noninteractive for Debian Frontend is for some packages like graphviz not stuck on interactive panel.
DEBIAN_FRONTEND=noninteractive $SUDO apt-get install -y $pkg &>> $LOG_DIR/apt_install.log
done
if [[ "$optimized_agg_flag" == 1 ]]; then
echo "|-- installing g++-10..."
$SUDO apt-get install software-properties-common -y &> $LOG_DIR/apt_install.log
Expand All @@ -69,7 +86,7 @@ case "$distro" in
$SUDO apt-get install -y $pkgs &> $LOG_DIR/apt_install.log
;;
fedora*)
pkgs="$pkgs autoconf diffutils gcc-c++ glibc-langpack-en hostname libjpeg-devel make nc pip procps python-devel python3-pip python3-setuptools python3-setuptools python3-testresources zlib-devel"
pkgs="$pkgs which autoconf diffutils gcc-c++ glibc-langpack-en hostname libjpeg-devel make nc pip procps python-devel python3-pip python3-setuptools python3-setuptools python3-testresources zlib-devel words"
if [[ "$show_deps" == 1 ]]; then
echo "$pkgs" | sort
exit 0
Expand Down
6 changes: 6 additions & 0 deletions scripts/docker/fedora-two/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM fedora:latest
RUN dnf install git -y
RUN git clone https://github.com/qishenli/pash.git && \
pash/scripts/distro-deps.sh && \
pash/scripts/setup-pash.sh && \
pash/pa.sh pash/evaluation/intro/hello-world.sh