Skip to content

Commit

Permalink
Automated release creation through GitHub workflow
Browse files Browse the repository at this point in the history
Remove AppVeyor builds, since we're no longer using it for releases.
  • Loading branch information
pbatard committed Jul 20, 2021
1 parent fc83b0d commit 77d2924
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 94 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ntfs-3g_linux.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: ntfs-3g - Linux (gcc, Clang) build

on:
push:
branches: [ uefi-driver ]
pull_request:
branches: [ uefi-driver ]
on: push

jobs:
build:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/uefi-driver_coverity.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: UEFI driver - Coverity (MSVC with gnu-efi) build

on:
push:
branches: [ uefi-driver ]
pull_request:
branches: [ uefi-driver ]
on: push

env:
SOLUTION_FILE_PATH: ./uefi-driver.sln
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/uefi-driver_linux.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: UEFI driver - Linux (gcc with EDK2) build

on:
push:
branches: [ uefi-driver ]
pull_request:
branches: [ uefi-driver ]
on: push

env:
DRIVER_VERSION: Test
BUILD_TYPE: RELEASE
GCC5_ARM_PREFIX: arm-linux-gnueabi-
GCC5_AARCH64_PREFIX: aarch64-linux-gnu-
Expand Down Expand Up @@ -37,13 +32,19 @@ jobs:
TARGET_PKGS: gcc-riscv64-linux-gnu python3-distutils uuid-dev

steps:
- uses: actions/checkout@v2
- name: Setup Linux environment
- name: Check out repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set version
id: set_version
run: echo "::set-output name=version::$(git describe --tags --abbrev=0)"
- name: Set up Linux environment
run: sudo apt install -y ${{matrix.TARGET_PKGS}}
- name: Fix missing Risc-V header
if: matrix.TARGET_TYPE == 'riscv64'
run: sudo ln -s /usr/riscv64-linux-gnu/include/gnu/stubs-lp64d.h /usr/riscv64-linux-gnu/include/gnu/stubs-lp64.h
- name: Setup EDK2
- name: Set up EDK2
run: |
git clone --recursive https://github.com/tianocore/edk2.git
cd edk2
Expand All @@ -56,9 +57,9 @@ jobs:
export WORKSPACE=$PWD
export PACKAGES_PATH=$WORKSPACE:$WORKSPACE/edk2
source edk2/edksetup.sh
build -a ${{matrix.TARGET_ARCH}} -b ${BUILD_TYPE} -t GCC5 -p uefi-driver.dsc -D FORCE_READONLY -D COMMIT_INFO=${GITHUB_SHA:0:8} -D DRIVER_VERSION=${DRIVER_VERSION}
build -a ${{matrix.TARGET_ARCH}} -b ${BUILD_TYPE} -t GCC5 -p uefi-driver.dsc -D FORCE_READONLY -D COMMIT_INFO=${GITHUB_SHA:0:8} -D DRIVER_VERSION=${{steps.set_version.outputs.version}}
mv $WORKSPACE/Build/${BUILD_TYPE}_GCC5/${{matrix.TARGET_ARCH}}/ntfs.efi $WORKSPACE/ntfs_${{matrix.TARGET_TYPE}}_ro.efi
build -a ${{matrix.TARGET_ARCH}} -b ${BUILD_TYPE} -t GCC5 -p uefi-driver.dsc -D COMMIT_INFO=${GITHUB_SHA:0:8} -D DRIVER_VERSION=${DRIVER_VERSION}
build -a ${{matrix.TARGET_ARCH}} -b ${BUILD_TYPE} -t GCC5 -p uefi-driver.dsc -D COMMIT_INFO=${GITHUB_SHA:0:8} -D DRIVER_VERSION=${{steps.set_version.outputs.version}}
mv $WORKSPACE/Build/${BUILD_TYPE}_GCC5/${{matrix.TARGET_ARCH}}/ntfs.efi $WORKSPACE/ntfs_${{matrix.TARGET_TYPE}}.efi
- name: Display SHA-256
run: sha256sum *.efi
Expand All @@ -67,3 +68,10 @@ jobs:
with:
name: uefi-drivers
path: ./*.efi
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
files: ./*.efi
6 changes: 1 addition & 5 deletions .github/workflows/uefi-driver_windows.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: UEFI driver - Windows (MSVC with gnu-efi) build

on:
push:
branches: [ uefi-driver ]
pull_request:
branches: [ uefi-driver ]
on: push

env:
SOLUTION_FILE_PATH: ./uefi-driver.sln
Expand Down
26 changes: 0 additions & 26 deletions appveyor.sh

This file was deleted.

42 changes: 0 additions & 42 deletions appveyor.yml

This file was deleted.

0 comments on commit 77d2924

Please sign in to comment.