Skip to content

Commit

Permalink
Remove redundant cache directory setup
Browse files Browse the repository at this point in the history
Eliminated the creation of a writable cache directory and simplified the configuration of `XDG_CACHE_HOME` to use the GitHub workspace directory directly. This change reduces unnecessary steps in the workflow and centralizes the cache management.
  • Loading branch information
dvershinin committed Sep 6, 2024
1 parent 35ac7f7 commit cebca36
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,21 @@ jobs:
- name: Install build and test dependencies
run: |
sudo apt-get --yes update
sudo apt-get install --yes libpcre3-dev libssl-dev perl cpanminus
sudo apt-get install --yes libpcre3-dev libssl-dev perl cpanminus wget
- name: Create NGINX download directory
run: mkdir nginx

- name: Download ${{ matrix.nginx-branch }} NGINX
uses: dvershinin/lastversion-action@main
with:
repository: 'nginx'
action: 'unzip'
branch: ${{ matrix.nginx-branch }}
working_directory: ./nginx
run: |
# mkdir nginx
wget -O nginx.tar.gz https://nginx.org/download/nginx-1.26.2.tar.gz
tar -xzf nginx.tar.gz -C nginx --strip-components=1
# - name: Download ${{ matrix.nginx-branch }} NGINX
# uses: dvershinin/lastversion-action@main
# with:
# repository: 'nginx'
# action: 'unzip'
# branch: ${{ matrix.nginx-branch }}
# working_directory: ./nginx

- name: Configure NGINX to compile with the module statically
run: |
Expand Down

0 comments on commit cebca36

Please sign in to comment.