Merge pull request #2 from mabrains/fix_ci_change_order

Fix CI actions and install klayout properly.
diff --git a/.github/workflows/drc_gf180mcu_fd_io_test.yml b/.github/workflows/drc_gf180mcu_fd_io_test.yml
index 68b9698..39a905c 100644
--- a/.github/workflows/drc_gf180mcu_fd_io_test.yml
+++ b/.github/workflows/drc_gf180mcu_fd_io_test.yml
@@ -54,6 +54,8 @@
       # Installs Klayout verison 0.27.8
       - name: Installing Klayout 0.27.8
         run: |
+          sudo apt-get update
+          sudo apt-get upgrade -y
           wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
           sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
           sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
diff --git a/.github/workflows/drc_gf180mcu_fd_ip_sram_test.yml b/.github/workflows/drc_gf180mcu_fd_ip_sram_test.yml
index f5b0f1c..4c80822 100644
--- a/.github/workflows/drc_gf180mcu_fd_ip_sram_test.yml
+++ b/.github/workflows/drc_gf180mcu_fd_ip_sram_test.yml
@@ -54,6 +54,8 @@
       # Installs Klayout verison 0.27.8
       - name: Installing Klayout 0.27.8
         run: |
+          sudo apt-get update
+          sudo apt-get upgrade -y
           wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
           sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
           sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
diff --git a/.github/workflows/drc_gf180mcu_fd_sc_mcu7t5v0_test.yml b/.github/workflows/drc_gf180mcu_fd_sc_mcu7t5v0_test.yml
index 0a93fdb..b97d413 100644
--- a/.github/workflows/drc_gf180mcu_fd_sc_mcu7t5v0_test.yml
+++ b/.github/workflows/drc_gf180mcu_fd_sc_mcu7t5v0_test.yml
@@ -54,6 +54,8 @@
       # Installs Klayout verison 0.27.8
       - name: Installing Klayout 0.27.8
         run: |
+          sudo apt-get update
+          sudo apt-get upgrade -y
           wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
           sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
           sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
diff --git a/.github/workflows/drc_gf180mcu_fd_sc_mcu9t5v0_test.yml b/.github/workflows/drc_gf180mcu_fd_sc_mcu9t5v0_test.yml
index 93a36f9..463e37a 100644
--- a/.github/workflows/drc_gf180mcu_fd_sc_mcu9t5v0_test.yml
+++ b/.github/workflows/drc_gf180mcu_fd_sc_mcu9t5v0_test.yml
@@ -54,6 +54,8 @@
       # Installs Klayout verison 0.27.8
       - name: Installing Klayout 0.27.8
         run: |
+          sudo apt-get update
+          sudo apt-get upgrade -y
           wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
           sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
           sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
diff --git a/.github/workflows/drc_regression_test.yml b/.github/workflows/drc_regression_test.yml
index e1934a8..df1737e 100644
--- a/.github/workflows/drc_regression_test.yml
+++ b/.github/workflows/drc_regression_test.yml
@@ -54,6 +54,8 @@
       # Installs Klayout verison 0.27.8
       - name: Installing Klayout 0.27.8
         run: |
+          sudo apt-get update
+          sudo apt-get upgrade -y
           wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
           sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
           sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
diff --git a/.github/workflows/drc_switch_checking_test.yml b/.github/workflows/drc_switch_checking_test.yml
index 9c8e5a2..d4040ef 100644
--- a/.github/workflows/drc_switch_checking_test.yml
+++ b/.github/workflows/drc_switch_checking_test.yml
@@ -54,6 +54,8 @@
       # Installs Klayout verison 0.27.8
       - name: Installing Klayout 0.27.8
         run: |
+          sudo apt-get update
+          sudo apt-get upgrade -y
           wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
           sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
           sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
diff --git a/.github/workflows/lvs_gf180mcu_fd_sc_mcu7t5v0_test.yml b/.github/workflows/lvs_gf180mcu_fd_sc_mcu7t5v0_test.yml
index 6a7b20c..2e3eed0 100644
--- a/.github/workflows/lvs_gf180mcu_fd_sc_mcu7t5v0_test.yml
+++ b/.github/workflows/lvs_gf180mcu_fd_sc_mcu7t5v0_test.yml
@@ -54,6 +54,8 @@
       # Installs Klayout verison 0.27.8
       - name: Installing Klayout 0.27.8
         run: |
+          sudo apt-get update
+          sudo apt-get upgrade -y
           wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
           sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
           sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
diff --git a/.github/workflows/lvs_gf180mcu_fd_sc_mcu9t5v0_test.yml b/.github/workflows/lvs_gf180mcu_fd_sc_mcu9t5v0_test.yml
index 358a71b..0a1866e 100644
--- a/.github/workflows/lvs_gf180mcu_fd_sc_mcu9t5v0_test.yml
+++ b/.github/workflows/lvs_gf180mcu_fd_sc_mcu9t5v0_test.yml
@@ -54,6 +54,8 @@
       # Installs Klayout verison 0.27.8
       - name: Installing Klayout 0.27.8
         run: |
+          sudo apt-get update
+          sudo apt-get upgrade -y
           wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
           sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
           sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
diff --git a/.github/workflows/lvs_regression.yml b/.github/workflows/lvs_regression.yml
index e09d8b4..e8507ef 100644
--- a/.github/workflows/lvs_regression.yml
+++ b/.github/workflows/lvs_regression.yml
@@ -54,6 +54,8 @@
       # Installs Klayout verison 0.27.8
       - name: Installing Klayout 0.27.8
         run: |
+          sudo apt-get update
+          sudo apt-get upgrade -y
           wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
           sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
           sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
diff --git a/.github/workflows/lvs_switch_checking_test.yml b/.github/workflows/lvs_switch_checking_test.yml
index 3f97947..964a42b 100644
--- a/.github/workflows/lvs_switch_checking_test.yml
+++ b/.github/workflows/lvs_switch_checking_test.yml
@@ -54,6 +54,8 @@
       # Installs Klayout verison 0.27.8
       - name: Installing Klayout 0.27.8
         run: |
+          sudo apt-get update
+          sudo apt-get upgrade -y
           wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
           sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
           sudo dpkg -i ./klayout_0.27.8-1_amd64.deb