diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 06ea7f788..0a4a58790 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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"