Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
dima74 committed Aug 21, 2024
1 parent 3d938e2 commit dd138a2
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 27 deletions.
69 changes: 46 additions & 23 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: check

on:
push:
branches:
- master
workflow_dispatch:
schedule:
# every day at 03:45 UTC
Expand All @@ -14,26 +17,46 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up cargo cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build
run: cargo build
- name: Run tests
run: cargo test
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
# Note that secrets are not allowed to start with GITHUB_, so added MY_ prefix
GITHUB_APP_ID: ${{ secrets.MY_GITHUB_APP_ID }}
GITHUB_APP_PRIVATE_KEY: ${{ secrets.MY_GITHUB_APP_PRIVATE_KEY }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.MY_GITHUB_PERSONAL_ACCESS_TOKEN }}
RUST_BACKTRACE: 1
- name: Temp 1
run: df -h .
- name: Frees disk space
run: |
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/share/boost
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Temp 2
run: df -h .
# - name: Set up cargo cache
# uses: actions/cache@v4
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: ${{ runner.os }}-cargo-
# - name: Build
# run: cargo build
# - name: Temp 1
# run: df -h .
# - name: Temp 2
# run: du -sh /*
# - name: Temp 3
# run: du -sh *

# - name: Run tests
# run: cargo test
# env:
# CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
# CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
# # Note that secrets are not allowed to start with GITHUB_, so added MY_ prefix
# GITHUB_APP_ID: ${{ secrets.MY_GITHUB_APP_ID }}
# GITHUB_APP_PRIVATE_KEY: ${{ secrets.MY_GITHUB_APP_PRIVATE_KEY }}
# GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.MY_GITHUB_PERSONAL_ACCESS_TOKEN }}
# RUST_BACKTRACE: 1
8 changes: 4 additions & 4 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
name: Fly Deploy

on:
push:
branches:
- master
#on:
# push:
# branches:
# - master

jobs:
deploy:
Expand Down

0 comments on commit dd138a2

Please sign in to comment.