Skip to content

Commit

Permalink
edit actions
Browse files Browse the repository at this point in the history
  • Loading branch information
QZLin committed Aug 6, 2023
1 parent f7bdf57 commit 8d97a2c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,26 @@ jobs:
shell: pwsh
steps:
- uses: actions/cache/restore@v3
id: cache-msys-restore
with:
path: ${{ runner.temp }}/msys64
key: ${{ runner.os }}-msys
- uses: msys2/setup-msys2@v2
if: steps.cache.outputs.cache-hit != 'true'
if: steps.cache-msys-restore.outputs.cache-hit != 'true'
with:
install: >-
gcc
python3
python
make
rsync
gettext-devel
git
libreadline-devel
- uses: actions/cache/save@v3
with:
path: ${{ runner.temp }}/msys64
key: ${{ runner.os }}-msys
key: ${{ steps.cache-msys-restore.outputs.cache-primary-key }}

- name: Detect git
run: |-
Expand All @@ -54,12 +58,11 @@ jobs:
path: src/bup-0.34
- name: build bup
shell: msys2 {0}
working-directory: ${{ runner.temp }}/bup-pkgbuild-msys
env:
GIT_PATH: ${{ env.GIT_PATH }}
run: |-
GIT_PATH=$(cd "$GIT_PATH"; pwd)
export PATH="$PATH:$GIT_PATH"
ls
makepkg
- name: Pack and upload
Expand Down

0 comments on commit 8d97a2c

Please sign in to comment.