2021-01-01 14:57:19 +00:00
|
|
|
name: ASF-ci
|
2019-12-15 13:06:03 +00:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
env:
|
2021-11-08 22:41:02 +00:00
|
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
|
|
DOTNET_NOLOGO: true
|
2022-11-14 22:38:56 +00:00
|
|
|
DOTNET_SDK_VERSION: 7.0.x
|
2019-12-15 13:06:03 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-07-31 18:35:28 +00:00
|
|
|
main:
|
2019-12-15 13:06:03 +00:00
|
|
|
strategy:
|
2021-04-11 11:27:32 +00:00
|
|
|
fail-fast: false
|
2019-12-15 13:06:03 +00:00
|
|
|
matrix:
|
2021-08-01 11:11:51 +00:00
|
|
|
configuration: [Debug, Release]
|
2019-12-15 13:06:03 +00:00
|
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-04 17:19:48 +00:00
|
|
|
uses: actions/checkout@v4.0.0
|
2020-05-25 20:37:38 +00:00
|
|
|
with:
|
2023-09-04 17:19:48 +00:00
|
|
|
show-progress: false
|
2020-05-25 20:37:38 +00:00
|
|
|
submodules: recursive
|
2019-12-15 13:06:03 +00:00
|
|
|
|
|
|
|
- name: Setup .NET Core
|
2023-05-29 12:46:07 +00:00
|
|
|
uses: actions/setup-dotnet@v3.2.0
|
2019-12-15 13:06:03 +00:00
|
|
|
with:
|
|
|
|
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
|
|
|
|
|
|
|
- name: Verify .NET Core
|
|
|
|
run: dotnet --info
|
|
|
|
|
2021-08-01 11:11:51 +00:00
|
|
|
- name: Build ${{ matrix.configuration }} ArchiSteamFarm and other projects
|
|
|
|
run: dotnet build -c "${{ matrix.configuration }}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo
|
2020-05-22 09:48:02 +00:00
|
|
|
|
2021-08-01 11:11:51 +00:00
|
|
|
- name: Run ${{ matrix.configuration }} ArchiSteamFarm.Tests
|
|
|
|
run: dotnet test ArchiSteamFarm.Tests -c "${{ matrix.configuration }}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo
|
2020-06-13 12:45:41 +00:00
|
|
|
|
2020-07-31 19:02:33 +00:00
|
|
|
- name: Upload latest strings for translation on Crowdin
|
2021-08-01 11:11:51 +00:00
|
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.configuration == 'Release' && startsWith(matrix.os, 'ubuntu-') }}
|
2023-07-24 10:32:40 +00:00
|
|
|
uses: crowdin/github-action@v1.12.0
|
2020-07-31 20:36:36 +00:00
|
|
|
with:
|
2021-01-20 20:14:45 +00:00
|
|
|
crowdin_branch_name: main
|
2021-05-09 11:40:00 +00:00
|
|
|
config: '.github/crowdin.yml'
|
2020-07-31 20:36:36 +00:00
|
|
|
project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
|
|
|
|
token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}
|