Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed Oct 14, 2023
1 parent c7541a6 commit af57f3f
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: ConorMacBride/install-package@v1
with:
brew: wget
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable
- name: install toolchain
Expand All @@ -105,10 +108,15 @@ jobs:
run: sudo mv target/${{ matrix.target }}/release/libplugin.dylib ./plugin.dylib
- name: Download Database
run: |
curl https://github.com/pot-app/pot-app-translate-plugin-ecdict/releases/download/0.0.1/stardict.db -o stardict.db
wget https://github.com/skywind3000/ECDICT/releases/download/1.0.28/ecdict-sqlite-28.zip
- name: extract-7z-action
uses: DuckSoft/[email protected]
with:
pathSource: ecdict-sqlite-28.zip
pathTarget: Database
- uses: vimtor/action-zip@v1
with:
files: info.json ${{needs.check.outputs.icon}} plugin.dylib stardict.db
files: info.json ${{needs.check.outputs.icon}} plugin.dylib Database
dest: ${{needs.check.outputs.name}}.potext
- name: Upload Artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -147,17 +155,24 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Wget
run: sudo apt-get install wget -y
- name: Build for Linux
uses: ./.github/build-for-linux
with:
target: ${{ matrix.target }}
toolchain: stable-${{ matrix.target }}
- name: Download Database
run: |
curl https://github.com/pot-app/pot-app-translate-plugin-ecdict/releases/download/0.0.1/stardict.db -o stardict.db
wget https://github.com/skywind3000/ECDICT/releases/download/1.0.28/ecdict-sqlite-28.zip
- name: extract-7z-action
uses: DuckSoft/[email protected]
with:
pathSource: ecdict-sqlite-28.zip
pathTarget: Database
- uses: vimtor/action-zip@v1
with:
files: info.json ${{needs.check.outputs.icon}} plugin.so stardict.db
files: info.json ${{needs.check.outputs.icon}} plugin.so Database
dest: ${{needs.check.outputs.name}}.potext
- name: Upload Artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit af57f3f

Please sign in to comment.