Skip to content

Fixed: Correct generate target for AppleOS and iOS #126

Fixed: Correct generate target for AppleOS and iOS

Fixed: Correct generate target for AppleOS and iOS #126

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Build Selector
on:
push:
paths:
- "tools/user/build_selector/**"
- ".github/workflows/build_selector.yml"
permissions:
contents: read
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
- name: 'Install libcurl dev'
run: |
sudo apt-get update
# sudo apt-get upgrade
sudo apt-get install libcurl4-gnutls-dev -y
- name: 'Build'
run: |
# Build the project, with its main file included, without unittests
cd tools/user/build_selector
dub build --compiler=$DC -c ci
# Build and run tests, as defined by `unittest` configuration
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included
# See https://dub.pm/package-format-json.html#configurations
- name: 'Upload'
uses: actions/[email protected]
with:
name: linux64-build_selector
path: tools/user/build_selector/linux64-build_selector
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
- name: 'Build'
run: |
# Build the project, with its main file included, without unittests
cd tools/user/build_selector
dub build --compiler=$DC -c ci
- name: 'Upload'
uses: actions/[email protected]
with:
name: macos64-build_selector
path: tools/user/build_selector/macos64-build_selector
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
- name: 'Build'
run: |
# Build the project, with its main file included, without unittests
cd tools/user/build_selector
dub build -c ci
mkdir win-release
copy win64-build_selector.exe win-release/win64-build_selector.exe
copy libcurl.dll win-release/libcurl.dll
- name: 'Zip EXE with DLL'
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'win64-build_selector.zip'
directory: 'tools/user/build_selector/'
path: 'win-release'
- name: 'Upload'
uses: actions/[email protected]
with:
name: win64-build_selector.zip
path: tools/user/build_selector/win64-build_selector.zip
update-release:
runs-on: ubuntu-latest
needs: [build-linux, build-macos, build-windows]
permissions:
contents: write
steps:
- name: "Download build artifacts"
uses: actions/[email protected]
- name: "Update BuildAssets"
uses: ncipollo/release-action@v1
with:
artifacts: "win64-build_selector.zip/win64-build_selector.zip,linux64-build_selector/linux64-build_selector,macos64-build_selector/macos64-build_selector"
allowUpdates: "true"
tag: "BuildAssets.v1.0.0"