-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53fe6e9
commit 922b45e
Showing
2 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: progress | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- progress-workflow # FIXME remove this | ||
|
||
jobs: | ||
publish_progress: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out project | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Set up dependencies | ||
run: sudo apt install -y ninja-build cmake ccache clang curl libncurses5 | ||
- name: Set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
cache: 'pip' | ||
- name: Set up python package dependencies | ||
run: pip install toml colorama cxxfilt | ||
- name: Set up cache for clang | ||
uses: actions/cache@v3 | ||
with: | ||
key: clang391-401 | ||
path: | | ||
toolchain/clang-3.9.1 | ||
toolchain/clang-4.0.1 | ||
- name: Run simplified setup | ||
run: tools/setup.py --project | ||
- name: Build project | ||
run: tools/build.py | ||
- name: Upload progress state | ||
run: | | ||
full="$(tools/common/progress.py)" | ||
echo "full" | ||
echo $full | ||
MATCHING=`echo $full | sed -n "s/^.*matching\s[(]\(\d+\.\d+\)%.*$/\1/p"` | ||
echo "MATCHING" | ||
echo $MATCHING | ||
#MINOR=`echo $full | sed -n \"s/^.*non-matching \\(minor issues\\)\s\\(\(\d+\.\d+\)%.*$/\1/p"` | ||
echo "MINOR" | ||
echo $MINOR | ||
#var=`curl "\""https://monsterdruide.one/OdysseyDecomp/save_progress.php?matching=$MATCHING&minor=$MINOR&major=$MAJOR&pw=$PROGRESS_PASS"\""` | ||
env: | ||
PROGRESS_PASS: ${{ secrets.PROGRESS_PASS }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters