Backed checkout up to 2. #2354
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Amazon Linux.yaml | |
# | |
# This source file is part of the Workspace open source project. | |
# Diese Quelldatei ist Teil des quelloffenen Arbeitsbereich‐Projekt. | |
# https://github.com/SDGGiesbrecht/Workspace#workspace | |
# | |
# Copyright ©2021–2024 Jeremy David Giesbrecht and the Workspace project contributors. | |
# Urheberrecht ©2021–2024 Jeremy David Giesbrecht und die Mitwirkenden des Arbeitsbereich‐Projekts. | |
# | |
# Soli Deo gloria. | |
# | |
# Licensed under the Apache Licence, Version 2.0. | |
# See http://www.apache.org/licenses/LICENSE-2.0 for licence information. | |
name: Amazon Linux | |
on: [push, pull_request] | |
jobs: | |
Amazon_Linux: | |
name: Amazon Linux | |
runs-on: ubuntu-20.04 | |
container: swift:5.8.0-amazonlinux2 | |
env: | |
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | |
steps: | |
- name: Check out | |
uses: actions/checkout@v2 | |
- name: Cache Workspace | |
uses: actions/cache@v4 | |
with: | |
key: Amazon‐Linux‐${{ hashFiles('.github/workflows/**') }} | |
path: .build/SDG/Workspace | |
- name: Repair Git | |
shell: bash | |
run: | | |
set -x | |
git config --global --add safe.directory '*' | |
- name: Install SwiftPM dependencies | |
shell: bash | |
run: | | |
set -x | |
yum install --assumeyes \ | |
ncurses-devel \ | |
sqlite-devel | |
- name: Install Workspace dependencies | |
shell: bash | |
run: | | |
set -x | |
yum install --assumeyes \ | |
curl | |
- name: Refresh | |
shell: bash | |
run: | | |
set -x | |
swift run workspace refresh •language '🇬🇧EN;🇺🇸EN;🇨🇦EN;🇩🇪DE' | |
- name: Validate | |
shell: bash | |
run: | | |
set -x | |
swift run workspace validate •job amazon‐linux •language '🇬🇧EN;🇺🇸EN;🇨🇦EN;🇩🇪DE' | |
- name: Grant permission to cache | |
shell: bash | |
run: | | |
set -x | |
chmod -R a+rwx . |