-
Notifications
You must be signed in to change notification settings - Fork 15
77 lines (66 loc) · 2.53 KB
/
Copy pathfedora.yml
File metadata and controls
77 lines (66 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: fedora
on:
pull_request:
types: [ opened, synchronize, reopened, closed ]
paths-ignore:
- .github/workflows/macos.yaml
- .github/workflows/ubuntu.yml
- .github/workflows/windows.yaml
- '**/*.md'
release:
types: [ published, created, edited ]
workflow_dispatch:
schedule:
# daily
- cron: '0 0 * * *'
jobs:
run:
strategy:
matrix:
os: [fedora:40, fedora:41, fedora:42, fedora:43]
# NOTE: GitHub Actions does not support running on Fedora directly, so we run it in a container.
runs-on: ubuntu-latest
container:
image: ${{ matrix.os }}
if: "!contains(github.event.pull_request.labels.*.name, 'ci: skip fedora') && !contains(github.event.head_commit.message, '[skip fedora]')"
steps:
- name: Check Environment
run: |
echo "Running on Fedora version: $(cat /etc/fedora-release)"
echo "Running on architecture: $(uname -m)"
echo "Current directory: $(pwd)"
echo "Environment variables:"
env
- name: Set up tools
run: |
dnf install -y python3 python3-pip python3-pyyaml which cmake util-linux
python3 -m pip install --upgrade pip
- name: Create non-root user
run: |
dnf install -y sudo
groupadd -g 1000 user
useradd -m -u 1000 -g user -G wheel -s /bin/bash user
echo "user ALL=(ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/user
- uses: actions/checkout@v4
- name: Create workspace
shell: bash
# Run as non-root user in the container
run: |
cd $GITHUB_WORKSPACE
pwd; ls -la
chown -R user:user .
su - user -c "cd $GITHUB_WORKSPACE && pwd && ls -la && export CI=true && export GITHUB_ACTIONS=true && ./flutter_workspace.py --enable=filament --stdin-file=/dev/null"
cat ./setup_env.sh
- name: Test workspace
shell: bash
run: |
cd $GITHUB_WORKSPACE
pwd; ls -la
su - user -c "cd $GITHUB_WORKSPACE && pwd && ls -la && export CI=true && export GITHUB_ACTIONS=true && . ./setup_env.sh && dart --version"
- name: Test AOT creation
working-directory: ${{ github.workspace }}
shell: bash
run: |
cd $GITHUB_WORKSPACE
pwd; ls -la
su - user -c "cd $GITHUB_WORKSPACE && pwd && ls -la && export CI=true && export GITHUB_ACTIONS=true && . ./setup_env.sh && ./flutter_workspace.py --create-aot --app-path=./app/tcna-packages/packages/filament_scene/example/"