Skip to content

Commit

Permalink
Use Github example context debug file
Browse files Browse the repository at this point in the history
  • Loading branch information
hemebond committed Mar 8, 2024
1 parent 0388354 commit 34159a1
Showing 1 changed file with 51 additions and 43 deletions.
94 changes: 51 additions & 43 deletions .github/workflows/build.yml
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"

0 comments on commit 34159a1

Please sign in to comment.