Skip to content

Commit

Permalink
ci: update ci modules to the latest version (#432)
Browse files Browse the repository at this point in the history
Co-authored-by: Markson Hon <markson@nixos.local>
Co-authored-by: wano <55907021+wanlce@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 12, 2024
1 parent cdaee76 commit 6a64cca
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 112 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '^1.21'
- run: go version
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'recursive'

Expand All @@ -45,21 +45,21 @@ jobs:
zip -9vr daed-full-src.zip . -x .git/\*
- name: Upload artifact - full source
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: daed-full-src.zip
path: daed-full-src.zip

build-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3.0.0
with:
version: latest

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: latest
Expand All @@ -70,7 +70,7 @@ jobs:
pnpm build
- name: Upload artifact - web
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: web
path: dist
Expand Down Expand Up @@ -141,11 +141,11 @@ jobs:

steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '^1.21'
- run: go version
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
sudo apt-get install -y gcc-mips64-linux-gnuabi64 gcc-mips64el-linux-gnuabi64 gcc-mips-linux-gnu gcc-mipsel-linux-gnu
- name: Download artifact - web
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: web
path: dist/
Expand All @@ -201,7 +201,7 @@ jobs:
curl -L -o ./bundled/geosite.dat https://github.com/v2rayA/dist-v2ray-rules-dat/raw/master/geosite.dat
- name: Upload artifact - bundle
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.get_filename.outputs.BUNDLE_NAME }}
path: bundled/*
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
- name: Upload Linux packages
if: ${{ env.GOARM != '5' && env.GOARM != '6' && env.GOARCH != 'mips' && env.GOARCH != 'mipsle' && env.GOARCH != 'mips64' && env.GOARCH != 'mips64le' }}
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.5
uses: nanoufo/action-upload-artifacts-and-release-assets@v2.0
with:
path: |
installer-${{ steps.get_filename.outputs.BUNDLE_NAME }}.deb
Expand All @@ -277,7 +277,7 @@ jobs:
- name: Upload Linux packages without Arch Linux package
if: ${{ env.GOARCH == 'mips' || env.GOARCH == 'mipsle' || env.GOARCH == 'mips64' || env.GOARCH == 'mips64le' }}
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.5
uses: nanoufo/action-upload-artifacts-and-release-assets@v2.0
with:
path: |
installer-${{ steps.get_filename.outputs.BUNDLE_NAME }}.deb
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-changelogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
permissions:
issues: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Generate release changelogs
uses: daeuniverse/changelogs-generator-action@main
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/pick-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '^1.21'
- run: go version
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.daed }}
submodules: 'recursive'
Expand All @@ -53,23 +53,23 @@ jobs:
shasum -a 512 $FILE >>$DGST
- name: Upload artifact - full source
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: daed-full-src.zip
path: daed-full-src.zip

build-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.daed }}

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3.0.0
with:
version: latest

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: latest
Expand All @@ -80,7 +80,7 @@ jobs:
pnpm build
- name: Upload artifact - web
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: web
path: dist
Expand Down Expand Up @@ -152,11 +152,11 @@ jobs:

steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '^1.21'
- run: go version
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.daed }}
fetch-depth: 0
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
sudo apt-get install -y gcc-mips64-linux-gnuabi64 gcc-mips64el-linux-gnuabi64 gcc-mips-linux-gnu gcc-mipsel-linux-gnu
- name: Download artifact - web
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: web
path: dist/
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
shasum -a 512 $FILE >>$DGST
- name: Upload artifact - bundle
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.get_filename.outputs.BUNDLE_NAME }}
path: bundled/*
22 changes: 11 additions & 11 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '^1.21'
- run: go version
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'recursive'

Expand All @@ -75,7 +75,7 @@ jobs:
shasum -a 512 $FILE >>$DGST
- name: Upload artifact - full source
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: daed-full-src.zip
path: daed-full-src.zip
Expand All @@ -91,13 +91,13 @@ jobs:
build-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3.0.0
with:
version: latest

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: latest
Expand All @@ -108,7 +108,7 @@ jobs:
pnpm build
- name: Upload artifact - web
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: web
path: dist
Expand Down Expand Up @@ -150,11 +150,11 @@ jobs:

steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '^1.21'
- run: go version
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
sudo apt-get install -y gcc-mips64-linux-gnuabi64 gcc-mips64el-linux-gnuabi64 gcc-mips-linux-gnu gcc-mipsel-linux-gnu
- name: Download artifact - web
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: web
path: dist/
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
shasum -a 512 $FILE >>$DGST
- name: Upload artifact - bundle
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.get_filename.outputs.BUNDLE_NAME }}
path: bundled/*
Expand Down
Loading

0 comments on commit 6a64cca

Please sign in to comment.