forked from DarkPlacesEngine/DarkPlaces
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Github example context debug file
- Loading branch information
Showing
1 changed file
with
51 additions
and
43 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 |
---|---|---|
@@ -1,49 +1,57 @@ | ||
name: CI | ||
|
||
on: | ||
# Run on pushes to tags, the "master" branch, and PR's | ||
push: | ||
branches: | ||
- master | ||
- feature/github-actions-enhancements | ||
# pull_request: | ||
on: push | ||
|
||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# container: | ||
# image: debian:latest | ||
# steps: | ||
# # Must install git before checking out the repo otherwise github doesn't fetch the .git directory. | ||
# - name: Install dependencies | ||
# run: | | ||
# apt update | ||
# apt install --yes build-essential libjpeg-dev libsdl2-dev libcurl4-openssl-dev libpng-dev libfreetype-dev libvorbis-dev | ||
# - name: Fetch repository | ||
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
# - name: Compile DP | ||
# run: | | ||
# # fail if there's any warnings | ||
# export CC="cc -Werror" | ||
# make sdl-release | ||
# - name: Upload Linux artifacts | ||
# uses: actions/upload-artifact@ef09cdac3e2d3e60d8ccadda691f4f1cec5035cb # v4 | ||
# with: | ||
# name: Linux | ||
# path: | | ||
# darkplaces-sdl | ||
|
||
jobs: | ||
build: | ||
|
||
dump_contexts_to_log: | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: debian:latest | ||
|
||
steps: | ||
# Testing | ||
- name: Testing of environment variables | ||
run: | | ||
echo $GITHUB_SHA | ||
echo $GITHUB_REF_NAME | ||
echo ${{ github.event.pull_request.head.sha }} | ||
echo github.ref_type ${{ github.ref_type }} | ||
# Must install git before checking out the repo otherwise github doesn't fetch the .git directory. | ||
# - name: Install dependencies | ||
# run: | | ||
# apt update | ||
# apt install --yes build-essential libjpeg-dev libsdl2-dev libcurl4-openssl-dev libpng-dev libfreetype-dev libvorbis-dev | ||
|
||
# - name: Fetch repository | ||
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
# - name: Compile DP | ||
# run: | | ||
# # fail if there's any warnings | ||
# export CC="cc -Werror" | ||
# make sdl-release | ||
|
||
# - name: Upload Linux artifacts | ||
# uses: actions/upload-artifact@ef09cdac3e2d3e60d8ccadda691f4f1cec5035cb # v4 | ||
# with: | ||
# name: Linux | ||
# path: | | ||
# darkplaces-sdl | ||
|
||
- name: Dump GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- name: Dump job context | ||
env: | ||
JOB_CONTEXT: ${{ toJson(job) }} | ||
run: echo "$JOB_CONTEXT" | ||
- name: Dump steps context | ||
env: | ||
STEPS_CONTEXT: ${{ toJson(steps) }} | ||
run: echo "$STEPS_CONTEXT" | ||
- name: Dump runner context | ||
env: | ||
RUNNER_CONTEXT: ${{ toJson(runner) }} | ||
run: echo "$RUNNER_CONTEXT" | ||
- name: Dump strategy context | ||
env: | ||
STRATEGY_CONTEXT: ${{ toJson(strategy) }} | ||
run: echo "$STRATEGY_CONTEXT" | ||
- name: Dump matrix context | ||
env: | ||
MATRIX_CONTEXT: ${{ toJson(matrix) }} | ||
run: echo "$MATRIX_CONTEXT" |