Skip to content
Merged
Changes from all commits
Commits
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
43 changes: 32 additions & 11 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,26 @@ jobs:
os: [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm]
runs-on: ${{ matrix.os }}
steps:
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: zsh zsh-common
- uses: actions/checkout@main
- name: Prepare APT cache dir
run: |
mkdir -p "$RUNNER_TEMP/apt-cache"/{archives,lists}
- name: Cache apt packages
uses: actions/cache@main
with:
path: |
${{ runner.temp }}/apt-cache/archives
${{ runner.temp }}/apt-cache/lists
key: ${{ runner.os }}-apt-${{ matrix.os }}-${{ hashFiles('**/airconnect/airconnect_installer') }}
restore-keys: |
${{ runner.os }}-apt-${{ matrix.os }}-
- name: Install dependencies
run: |
sudo apt-get update \
-o Dir::Cache::Archives="$RUNNER_TEMP/apt-cache/archives" \
-o Dir::Cache::Lists="$RUNNER_TEMP/apt-cache/lists"
sudo apt-get install -y zsh

- name: Testing Shell script
run: |
cd airconnect
Expand All @@ -22,14 +38,19 @@ jobs:
other-scripts:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@main
- name: Cache downloaded scripts
uses: actions/cache@main
with:
path: |
${{ github.workspace }}/pihole-cloudflared
${{ github.workspace }}/update_fastfetch
key: ${{ runner.os }}-scripts-${{ hashFiles('**/*.sh') }}
restore-keys: |
${{ runner.os }}-scripts-

- name: Run sript 'pihole-cloudflared'
run: |
sudo bash pihole-cloudflared
- name: Run script 'pihole-cloudflared'
run: sudo bash pihole-cloudflared


- name: Run sript 'update_fastfetch'
run: |
sudo bash update_fastfetch
- name: Run script 'update_fastfetch'
run: sudo bash update_fastfetch