Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Debug github actions (#414)
Browse files Browse the repository at this point in the history
* Debug github actions

* Debug github actions

* Debug github actions

Co-authored-by: developer2017test <31897540+developer2017test@users.noreply.github.com>
  • Loading branch information
Jikstra and developer2017test committed Jan 29, 2020
1 parent 506f5ae commit 8e771a9
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 20 deletions.
55 changes: 40 additions & 15 deletions .github/workflows/build_and_test-windows.yml
Expand Up @@ -5,21 +5,46 @@ jobs:
build:
runs-on: windows-latest
steps:
- name: Prebuild Filename
id: prebuild-filename
run: echo "::set-output ARCHIVE_NAME::$github.ref-win32-x64.tar.gz"

- name: Build Prebuild
- name: Checkout
uses: actions/checkout@v2
- name: Prepare
run: |
echo ${{ steps.prebuild-filename.outputs.ARCHIVE_NAME }}
npm run prebuild
tar -zcvf "${{ steps.prebuild-filename.outputs.ARCHIVE_NAME }}" -C prebuilds .
rustc -vV
rustup -vV
cargo -vV
npm --version
node --version
- name: Pull submodule
run: npm run submodule

- name: Upload Prebuild
uses: svenstaro/upload-release-action@v1-release
- name: Cache node modules
uses: actions/cache@v1
with:
path: ${{ env.APPDATA }}/npm-cache # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-node-3-${{ hashFiles('**/package.json') }}

- name: Cache cargo registry
uses: actions/cache@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.prebuild-filename.outputs.ARCHIVE_NAME }}
asset_name: v1.0.0-beta.23-test1
tag: ${{ github.ref }}
overwrite: true
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-2-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-2-index-${{ hashFiles('**/Cargo.lock') }}

- name: Cache cargo build
uses: actions/cache@v1
with:
path: deltachat-core-rust/target
key: ${{ runner.os }}-cargo-2-build-target-${{ hashFiles('**/Cargo.lock') }}

- name: Install
if: steps.cache.outputs.cache-hit != 'true'
run: npm install --verbose
- name: Test
run: |
npm run test
14 changes: 9 additions & 5 deletions .github/workflows/prebuild-windows.yml
Expand Up @@ -51,17 +51,21 @@ jobs:
run: |
npm run test
- name: Prebuild Filename
id: prebuild-filename
run: echo "::set-output name=ARCHIVE_NAME::${{ github.ref }}-win32-x64.tar.gz"

- name: Build Prebuild
run: |
SET ARCHIVE_NAME=%GITHUB_REF%-win32-x64.tar.gz
echo ${{ steps.prebuild-filename.outputs.ARCHIVE_NAME }}
npm run prebuild
tar -zcvf "%ARCHIVE_NAME%" -C prebuilds .
tar -zcvf "${{ steps.prebuild-filename.outputs.ARCHIVE_NAME }}" -C prebuilds .
- name: Upload Prebuild
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.ARCHIVE_NAME }}
asset_name: ${{ env.ARCHIVE_NAME }}
file: ${{ steps.prebuild-filename.outputs.ARCHIVE_NAME }}
asset_name: v1.0.0-beta.23-test1
tag: ${{ github.ref }}
overwrite: true
overwrite: true

0 comments on commit 8e771a9

Please sign in to comment.